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.

AnimatorTransitionInfo

struct in UnityEngine

Description

Information about the current transition.

Variables

anyStateReturns true if the transition is from an AnyState node, or from Animator.CrossFade().
fullPathHashThe unique name of the Transition.
nameHashThe simplified name of the Transition.
normalizedTimeNormalized time of the Transition.
userNameHashThe user-specified name of the Transition.

Public Functions

IsNameDoes name match the name of the active Transition.
IsUserNameDoes userName match the name of the active Transition.