Animator.SetTrigger
SetTrigger(name: string): void;
void SetTrigger(string name);
def SetTrigger(name as string) as void
SetTrigger(id: int): void;
void SetTrigger(int id);
def SetTrigger(id as int) as void
Parameters

name The name of the parameter.
id The id of the parameter. The id is generated using Animator::StringToHash.
Description

Sets a trigger parameter to active or inactive.

Triggers are parameters that act mostly like booleans, but get resets to inactive when they are used in a transition.