Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AnimatorStateInfo.IsName

public bool IsName(string name);

Description

Does name match the name of the active state in the statemachine?

The name should be in the form Layer.Name, for example "Base.Idle".