Hello Community! Is there an easy way to smoothly transition between Mecanim Sub-State Machines (those 6 cornered blocks)?
I have set up 3 different Movement Styles (no weapon, pistol, rifle) each inside its own Sub-State Machine.
Right now I’m triggering AnyState with an integer parameter but I have to set the integer back manually, so that AnyState won’t trigger the state over and over again. This results in ugly extra coding. Combined with the pathfinding and other AI stuff it’s a real pain to get the right timing.
Is there a better way to do this or a standard procedure I’m not aware of?
Thanks, that’s what I’m doing. Triggering AnyState which then switches Sub-States. The thing is, that it feels hacky to trigger a variable everytime I want to make the character start and stop moving. I know I could just do everything inside a single Sub-State or inside the base layer but that would mean I have to mix all these clean seperate animsets into one big, confusing mess.
So my question still stands: Is there another, more elegant way, via coding or in the animator canvas to transition between Sub-States?