Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

Animator.ResetTrigger

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual
public function ResetTrigger(name: string): void;
public void ResetTrigger(string name);
public def ResetTrigger(name as string) as void

Parameters

name The name of the parameter.

Description

Resets the trigger parameter to false.

A trigger parameter is like a bool parameter, but the parameter is reset to false once the parameter has been consumed by a transition condition.

public function ResetTrigger(id: int): void;
public void ResetTrigger(int id);
public def ResetTrigger(id as int) as void

Parameters

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

Description

Resets the trigger parameter to false.

A trigger parameter is like a bool parameter, but the parameter is reset to false once the parameter has been consumed by a transition condition.