playMaker

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

WabbysLand

  • Playmaker Newbie
  • *
  • Posts: 25
How to animate/add effect on UI elements (Canvas) ?
« on: June 05, 2018, 02:42:51 AM »
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 05, 2018, 02:46:18 AM by WabbysLand »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: How to animate/add effect on UI elements (Canvas) ?
« Reply #1 on: June 05, 2018, 12:13:07 PM »
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.