engine icon indicating copy to clipboard operation
engine copied to clipboard

AnimatorStateTransition add hasExitTime, fixedDuration, setTrigger

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 animation control with new methods for managing trigger states.
    • Added ability to specify parameters as triggers in the AnimatorController.
    • Introduced new methods for clearing transitions in the AnimatorStateMachine.
  • Improvements

    • Refined transition management logic for better handling of exit times.
    • Enhanced documentation for AnimatorStateMachine methods.
  • Tests

    • Expanded test cases to include new scenarios with parameter settings and transitions.

luzhuang avatar Aug 21 '24 05:08 luzhuang