I have a second animation layer which is only masked to the arms of the player.
Now I would like to check if the animator is in a certain state in this second layer.
function IsWeaponDrawing() : boolean {
if( myAnimatorInfo.nameHash == myAnimator.StringToHash("Arms.sheat_sword") ){
Debug.Log("sheat sword");
return true;
}else
return false;
}
But this doesn’t work and I have no clue why not. “Arms” is the name of my second layer, “sheat_sword” the name of the animation state.
The “Arms” layer has blending mode set to override with a weight of 0.95.
Any clues?