onstateenter - eisclimber/ExPresS-XR GitHub Wiki

MaterialSwitchingStateBehaviour.OnStateEnter(Animator,AnimatorStateInfo,int)

Method in MaterialSwitchingStateBehaviour

Summary

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)

Parameters

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.
⚠️ **GitHub.com Fallback** ⚠️