- Home /
Easier way of creating transitions in the animator?
I want my 'idle' state to be able to transition to any other state. Is there an easy way of doing this that doesn't involve manually creating an arrow from the idle state to every single other state in the animator?
Answer by theANMATOR2b · Jan 21, 2018 at 08:11 PM
Alternate process is transitioning with code. I don't think it is easier - but it's different than a mecanim transition.
Consider reviewing the "any state" trigger pattern found in these to links.
https://forum.unity.com/threads/unto-the-end-cinematic-combat-platformer.504359/#post-3321679
Can I create a state that represents all the other states? That way I can just have the idle state transition to that state?
The only way I know is to use a sub-state random transition setup. So your idle would be outside the sub-state and via code the idle 'could' transition to any of the states within the sub-state machine. I have never created a setup like this but I watched a youtube video on it a while ago.
Don't have the link on me - but search for random idle sub-state machine or something along those lines. I remember it is a guy setting up a sub-state for a triceratops.
Hope that helps.
Your answer
Follow this Question
Related Questions
Can an empty state in Animator cause performance issues? 1 Answer
How to delete a StateMachineBehaviour via Editor Script? 1 Answer
Switch animation state while keeping animation timing 0 Answers
How do I make the transition between two states in the "Animator" happen instantly? 3 Answers
Unity OnStateExit StateMachineBehaviour is never getting called 0 Answers