Version: 5.4

AnimatorStateTransition

class in UnityEditor.Animations

/

다음으로부터 상속:Animations.AnimatorTransitionBase

매뉴얼로 전환

설명

Transitions define when and how the state machine switch from one state to another. AnimatorStateTransition always originate from an Animator State (or AnyState) and have timing parameters.

A transition happens when all its conditions are met. AnimatorStateTransition derives from AnimatorTransitionBase.

변수

canTransitionToSelfSet to true to allow or disallow transition to self during AnyState transition.
durationThe duration of the transition.
exitTimeThe normalized time of the source state when the condition is true.
hasExitTimeWhen active the transition will have an exit time condition.
hasFixedDurationWhen active the transition duration will have a fixed duration.
interruptionSourceWhich AnimatorState transitions can interrupt the Transition.
offsetThe time at which the destination state will start.
orderedInterruptionThe Transition can be interrupted by a transition that has a higher priority.

생성자

AnimatorStateTransitionCreates a new animator state transition.

상속된 멤버

변수

conditions AnimatorCondition conditions that need to be met for a transition to happen.
destinationStateThe destination state of the transition.
destinationStateMachineThe destination state machine of the transition.
isExitIs the transition destination the exit of the current state machine.
muteMutes the transition. The transition will never occur.
soloMutes all other transitions in the source state.
hideFlagsShould the object be hidden, saved with the scene or modifiable by the user?
nameThe name of the object.

Public 함수

AddConditionUtility function to add a condition to a transition.
RemoveConditionUtility function to remove a condition from the transition.
GetInstanceIDReturns the instance id of the object.
ToStringReturns the name of the game object.

정적 함수

DestroyRemoves a gameobject, component or asset.
DestroyImmediateDestroys the object obj immediately.
DontDestroyOnLoadMakes the object target not be destroyed automatically when loading a new scene.
FindObjectOfTypeReturns the first active loaded object of Type type.
FindObjectsOfTypeReturns a list of all active loaded objects of Type type.
InstantiateReturns a copy of the object original.

연산자

boolDoes the object exist?
operator !=Compares if two objects refer to a different object.
operator ==Compares two object references to see if they refer to the same object.