onstateenter - eisclimber/ExPresS-XR GitHub Wiki
Method in MaterialSwitchingStateBehaviour
Called when the state is entered.
Tries to retrieve the ColorAnimationSwitcher-Component from the Animators GameObject and use it to change the material.
public override void OnStateEnter(Animator animator, AnimatorStateInfo stateInfo, int layerIndex)| Name | Description |
|---|---|
UnityEngine.Animator animator |
Animator associated with this state machine. |
UnityEngine.AnimatorStateInfo stateInfo |
Runtime information on the state of the animator. |
int layerIndex |
LayerIndex of the state. |