Unity_UI_AutoAnimation icon indicating copy to clipboard operation
Unity_UI_AutoAnimation copied to clipboard

Ignore inactive

Open anakin78z opened this issue 6 months ago • 0 comments

2 commits to avoid unwanted delays in animation.

fbc58d2: Small change to ignore inactive animations when calculating trigger delay. To test:

  1. Open the ExampleScene
  2. Open the Float InOut From Bottom animation preset in the Inspector
  3. Turn on Use Scale Animation
  4. Set the Duration of the Scale Animation to 2
  5. Turn off Use Scale Animation
  6. Set When the animation is finished... to Trigger Entrance Animation
  7. Set After Seconds to 0
  8. Play the scene
  9. 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:

  1. Open the ExampleScene
  2. Turn off objects T3 and T4
  3. Play the scene
  4. On the Canvas object UI Auto Animation component, click Entrance Animation

There should be no pause between Text 2 and Text 5 appearing

anakin78z avatar May 14 '25 17:05 anakin78z