Animation Sub-State machine string identifier

I’ve been scratching my head trying to play an idle animation. I have the animation states for the idle animations in a substate machine. It seems intuitive to just tell the animator to enter that sub-state machine and let the logic handle the rest.

Is that possible, if so what’s the string for an Animation Sub-State Machine? Is it possible to play them using the Animator.Play function?

Also are the string identifiers for animation states viewable in the editor? I keep looking in the inspector, but can’t see them anywhere.

did you have any luck ?

It appears Animator.Play can only play states, not sub-state machines. You can however play a state inside a sub-state machine, either using only the name of the state (e.g. animator.Play("SubState")) or using the full path, which needs to include the layer name as well (e.g. animator.Play("Base Layer.SubMachine.SubState")).

If you want to transition to a sub-state machine only, it seems setting up transitions and parameters is your only option.