engine icon indicating copy to clipboard operation
engine copied to clipboard

Add hasExitTime and fix error when set state startTime and transition duration is 0

Open luzhuang opened this issue 6 months ago • 1 comments

Please check if the PR fulfills these requirements

  • [x] The commit message follows our guidelines
  • [ ] Tests for the changes have been added (for bug fixes / features)
  • [ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

Other information:

Summary by CodeRabbit

  • New Features

    • Enhanced handling of animation transitions with improved exit time logic.
    • Introduced hasExitTime property for more nuanced control over transitions.
    • Added support for solo state tracking in transitions for better animation management.
    • Integrated a new TransitionSource class for improved transition management.
  • Bug Fixes

    • Streamlined calculations for playCostTime to ensure accuracy during playback.
    • Removed outdated calculations for transition times in tests.
  • Documentation

    • Updated comments to clarify the behavior of transition methods and properties.
  • Tests

    • Added new test cases to validate animator state transitions and exit timing behavior.

luzhuang avatar Aug 26 '24 03:08 luzhuang