Unity_UI_AutoAnimation
Unity_UI_AutoAnimation copied to clipboard
Ignore inactive
2 commits to avoid unwanted delays in animation.
fbc58d2: Small change to ignore inactive animations when calculating trigger delay. To test:
- Open the ExampleScene
- Open the Float InOut From Bottom animation preset in the Inspector
- Turn on
Use Scale Animation - Set the
Durationof the Scale Animation to 2 - Turn off
Use Scale Animation - Set
When the animation is finished...to Trigger Entrance Animation - Set
After Secondsto 0 - Play the scene
- On the Canvas object UI Auto Animation component, click
Entrance Animation
The animation should play and immediately play again without delay.
ed64438: Larger commit, to deal with inactive objects. This allows child objects to be turned off and not affect the auto animation. To test:
- Open the ExampleScene
- Turn off objects T3 and T4
- Play the scene
- On the Canvas object UI Auto Animation component, click
Entrance Animation
There should be no pause between Text 2 and Text 5 appearing