Skip to main content

Animator.ResetTrigger(string name)

Resets the value of the given trigger parameter.

Parameters:

NameTypeDescription
namestringThe parameter name.

Usage

---@type Animator
local animator;

---@type string
local name;


animator.ResetTrigger(name)

Extra Detail

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.