#Hi. Sorry if wrong channel, it's my 1st
1 messages · Page 1 of 1 (latest)
I have been stuck in the Unity animator for a few months figuring out the absolute best way to go about building a sustrainable animator that is easy to expand upon.
The trick here is to not have spider webs of connections.
Now for you specific usecase I can't guarentee this would work but let me give you some tips .
You should have all your running , ideling , walking animations in a sub state machine called Base locomotion (Unity docs suggests this layout )
When it comes to your jumping animations, you want to go from Any state > Jumping > Falling > Exit
If you look carefully on your current setup your default state from entry > Default State
is your Idle
So exit will always transition back into your idle state
To make things even simpler, You need to then have a sub state for your
Base Locomotion
And
Jumping actions (You have more than one )
So it will look like this
So the flow would be.
Game start
Entry > Default sub Locomotion state
Trigger Jump
Exit Defualt locomotion sate
Enter Sub Jum state
Jump1 > Idle1 > Exit
As easy as staht .. Spagetti animator gone
Thank you so much! Will try it out.
anytime