AnimatorTransitionInfo

struct in UnityEngine

/

Implemented in:UnityEngine.AnimationModule

Description 描述

Information about the current transition.

Properties 属性

anyStateReturns true if the transition is from an AnyState node, or from Animator.CrossFade.
durationDuration of the transition.
durationUnitThe unit of the transition duration.
fullPathHashThe hash name of the Transition.
nameHashThe simplified name of the Transition.
normalizedTimeNormalized time of the Transition.
userNameHashThe user-specified name of the Transition.

Public Methods 公共方法

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