Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


AnimatorStateTransition

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.
Read time 5 minutesLast updated 6 days ago

Definition

[HelpURL("class-Transition")]public class AnimatorStateTransition : AnimatorTransitionBase

Remarks

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

Constructors

Constructor

Description

AnimatorStateTransition()Creates a new animator state transition.

Properties

Property

Description

canTransitionToSelfSet to true to allow or disallow transition to self during AnyState transition.
durationThe duration of the transition.
exitTimeIf is true, exitTime represents the exact time at which the transition can take effect.
hasExitTimeWhen active the transition will have an exit time condition.
hasFixedDurationDetermines whether the duration of the transition is reported in a fixed duration in seconds or as a normalized time.
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.

Inheritance

Inherited Members

Operators

Operator

Description

operator ==Compares two object references to see if they refer to the same object.
boolDetermines whether the object exists.
operator !=Compares if two objects refer to a different object.