Skip to content

Conversation

@anakin78z
Copy link

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 added 2 commits May 14, 2025 09:43
This avoids extra delays if an inactive animation has a longer duration than any active component.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant