Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ResetTrigger

Resets the value of the given trigger parameter.
Read time 1 minuteLast updated 6 days ago

Definition

ResetTrigger(string)

Resets the value of the given trigger parameter.
public void ResetTrigger(string name)

Parameters

name

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

id

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.