Legacy Documentation: Version 5.1
LanguageEnglish
  • C#
  • JS

Script language

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

AnimationTriggers.normalTrigger

Switch to Manual
public var normalTrigger: string;

Description

Trigger to send to animator when entering normal state.

#pragma strict
// Required when Using UI elements.
public var buttonAnimator;
public var button;
function SomeFunction() {
	//Sets the button to the Normal state (Useful when making tutorials).
	buttonAnimator.SetTrigger(button.animationTriggers.normalTrigger);
}