You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the problem or limitation you are having in your project
It is difficult to restart animation in AnimationTree
Describe the feature / enhancement and how it helps to overcome the problem or limitation
If you want to switch multiple animations, you can use the StateMachine or NodeTransition / OneShot functions, but if you want to restart the same animation, you must implement a restart workaround with special case.
There is no particular reason not to restart the transition to the same state. If you do not restart, the animation will play normally if the transition to the same state is spammed. However, the more correct way is to implement non-spamming on the script side.
This restart-able state will allow you to implement switching multiple animations with the same effort as the AnimationPlayer::play().
Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Improve StateMachine and NodeTransition / OneShot to restart on transitions to the same state.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
StateMachine and AnimationTree are core
The text was updated successfully, but these errors were encountered:
TokageItLab
changed the title
Allow StateMachine and NodeTransition to restart when a transition to the same state is attempted
Allow StateMachine and NodeTransition / OneShot to restart when a transition to the same state is attempted
Jan 11, 2023
Describe the project you are working on
3D character game
Describe the problem or limitation you are having in your project
It is difficult to restart animation in AnimationTree
Describe the feature / enhancement and how it helps to overcome the problem or limitation
If you want to switch multiple animations, you can use the StateMachine or NodeTransition / OneShot functions, but if you want to restart the same animation, you must implement a restart workaround with special case.
There is no particular reason not to restart the transition to the same state. If you do not restart, the animation will play normally if the transition to the same state is spammed. However, the more correct way is to implement non-spamming on the script side.
This restart-able state will allow you to implement switching multiple animations with the same effort as the
AnimationPlayer::play()
.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Improve StateMachine and NodeTransition / OneShot to restart on transitions to the same state.
If this enhancement will not be used often, can it be worked around with a few lines of script?
No
Is there a reason why this should be core and not an add-on in the asset library?
StateMachine and AnimationTree are core
The text was updated successfully, but these errors were encountered: