I\'m using the following structure:
(Layer) \"Base Layer\" --> (Sub-State) \"Jump_Fall_Roll\" --> (State) \"Roll\"
static int rollState = Animat
The string to pass in Animator.StringToHash should include layer's name and state's name.
Animator.StringToHash
So to correctly generate the hash it should be:
int rollState = Animator.StringToHash("Base Layer.Roll");