Trigger Method

Just some curiously,
What better to do trigger Animation with Animator, with the parameter or direct State like:
animator.Play("Rifle Run", -1, 0f);

source: Unity - Scripting API: Animator.Play

somehow to avoid “Animator Hell” I did this, but I don’t know which one is better.

Thanks

If you play states directly then you are losing the main benefit of the animator which is allowing you to define state transitions.
It works but it will make your logic much more confusing to understand since any state can go to any other state and visually will look very odd with no blending between transitions.

2 Likes

ah, I see, thanks

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms