Hi,
I have a bubbles animation that I would like to animate to fade in and fade out as my animation loops.
I have attached a sprite fader script to my root object containing my 5 bubbles, but am confused as to when I add the property in the animation timeline as whatever I do it does not work, I am not certain which property pertaining to the sprite fader script i should be choosing and then how i should be animating it (curves?).
I have looked through forum posts but only found a post where it seemed code was being added somewhere and again I was unsure where and how to add edit this?
Any ideas?
Thanks.
Comments
Rather than attaching 5 separate scripts to the bubbles, and controlling them all separately, it's better to simply record the fading in an animation. Attach an Animator component to your root and animate them that way instead. You can use the Object: Animate Action if you need to control the animation playback in-game.