ResetTrigger
Resets the value of the given trigger parameter.
Read time 1 minuteLast updated 5 days ago
Definition
- Type: Method
- Namespace: UnityEngine.Animations
- Assembly: UnityEngine.AnimationModule
ResetTrigger(string)
Resets the value of the given trigger parameter.
public void ResetTrigger(string name)
Parameters
The parameter name.
Remarks
Use this to reset a Trigger parameter in an Animator Controller that could still be active. Make sure to create a parameter in the Animator Controller with the same name. See Animator.SetTrigger for more information about how to set a Trigger.
ResetTrigger(int)
Resets the value of the given trigger parameter.
public void ResetTrigger(int id)
Parameters
The parameter ID.
Remarks
Use this to reset a Trigger parameter in an Animator Controller that could still be active. Make sure to create a parameter in the Animator Controller with the same name. See Animator.SetTrigger for more information about how to set a Trigger.