playMaker

Author Topic: How to animate/add effect on UI elements (Canvas) ?  (Read 629 times)

WabbysLand

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
How to animate/add effect on UI elements (Canvas) ?
« on: June 04, 2018, 11:42:51 PM »
Hello,

What is the best way to animate canvas element (like panels, images, buttons… canvas in "screen space" render mode) with Playmaker and Unity, in general?

I would like to add some fade in/out effect playing with the position, scale or the alpha channel of these elements. It would nice to use iTween too :-)

I'm using Unity 2018/Plamaker 1.9
« Last Edit: June 04, 2018, 11:46:18 PM by WabbysLand »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 5071
    • View Profile
    • jinxtergames
Re: How to animate/add effect on UI elements (Canvas) ?
« Reply #1 on: June 05, 2018, 09:13:07 AM »
Hi,
It depends on what kind of animations you would want to do,
But i prefer to use the animator.

Itween is outdated but there are other tween assets (dotween for example)
and there are some standard actions like for example :
  • Float Interpolate
  • Vector 3 Interpolate

For Example you could use a 'Float Interpolate' in combination with 'Ui Graphic Set Color' and set the float variable to the alpha to fade.