# 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.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor.Animations](/engine/6000.6/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule
* **Inherits from:** [AnimatorTransitionBase](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase.md)

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

## Remarks

A transition happens when all its conditions are met.  [AnimatorStateTransition](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition.md) derives from [AnimatorTransitionBase](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase.md).

## Constructors

| Constructor                                                                                                         | Description                              |
| ------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [AnimatorStateTransition()](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/ctor.md) | Creates a new animator state transition. |

## Properties

| Property                                                                                                                     | Description                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| [canTransitionToSelf](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/cantransitiontoself.md) | Set to true to allow or disallow transition to self during AnyState transition.                                       |
| [duration](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/duration.md)                       | The duration of the transition.                                                                                       |
| [exitTime](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/exittime.md)                       | If  is true, exitTime represents the exact time at which the transition can take effect.                              |
| [hasExitTime](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/hasexittime.md)                 | When active the transition will have an exit time condition.                                                          |
| [hasFixedDuration](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/hasfixedduration.md)       | Determines whether the duration of the transition is reported in a fixed duration in seconds or as a normalized time. |
| [interruptionSource](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/interruptionsource.md)   | Which AnimatorState transitions can interrupt the Transition.                                                         |
| [offset](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/offset.md)                           | The time at which the destination state will start.                                                                   |
| [orderedInterruption](/engine/6000.6/script-reference/unityeditor/animations/animatorstatetransition/orderedinterruption.md) | The Transition can be interrupted by a transition that has a higher priority.                                         |

## Inheritance

**Inherited Members:**

* [AnimatorTransitionBase.AddCondition(AnimatorConditionMode, float, string)](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/addcondition.md)
* [AnimatorTransitionBase.RemoveCondition(AnimatorCondition)](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/removecondition.md)
* [AnimatorTransitionBase.solo](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/solo.md)
* [AnimatorTransitionBase.mute](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/mute.md)
* [AnimatorTransitionBase.isExit](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/isexit.md)
* [AnimatorTransitionBase.destinationStateMachine](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/destinationstatemachine.md)
* [AnimatorTransitionBase.destinationState](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/destinationstate.md)
* [AnimatorTransitionBase.conditions](/engine/6000.6/script-reference/unityeditor/animations/animatortransitionbase/conditions.md)
* [Object.GetEntityId()](/engine/6000.6/script-reference/unityengine/object/getentityid.md)
* [Object.GetHashCode()](/engine/6000.6/script-reference/unityengine/object/gethashcode.md)
* [Object.InstantiateAsync\<T>(T)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Transform, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, Vector3, Quaternion, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Transform, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, Vector3, Quaternion, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.InstantiateAsync\<T>(T, int, ReadOnlySpan\<Vector3>, ReadOnlySpan\<Quaternion>, InstantiateParameters, CancellationToken)](/engine/6000.6/script-reference/unityengine/object/instantiateasync.md)
* [Object.Instantiate(Object, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion\))
* [Object.Instantiate(Object, Vector3, Quaternion, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-vector3-quaternion-transform\))
* [Object.Instantiate(Object)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object\))
* [Object.Instantiate(Object, Scene)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-scene\))
* [Object.Instantiate\<T>(T, InstantiateParameters)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, InstantiateParameters)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate(Object, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform\))
* [Object.Instantiate(Object, Transform, bool)](/engine/6000.6/script-reference/unityengine/object/instantiate.md#instantiate\(object-transform-bool\))
* [Object.Instantiate\<T>(T)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Vector3, Quaternion, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Instantiate\<T>(T, Transform, bool)](/engine/6000.6/script-reference/unityengine/object/instantiate.md)
* [Object.Destroy(Object, float)](/engine/6000.6/script-reference/unityengine/object/destroy.md)
* [Object.DestroyImmediate(Object, bool)](/engine/6000.6/script-reference/unityengine/object/destroyimmediate.md)
* [Object.FindObjectsByType(Type)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type\))
* [Object.FindObjectsByType(Type, FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytype\(type-findobjectsinactive\))
* [Object.DontDestroyOnLoad(Object)](/engine/6000.6/script-reference/unityengine/object/dontdestroyonload.md)
* [Object.FindAnyObjectByType\<T>()](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(\))
* [Object.FindAnyObjectByType\<T>(FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytypet\(findobjectsinactive\))
* [Object.FindObjectsByType\<T>()](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(\))
* [Object.FindObjectsByType\<T>(FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findobjectsbytype.md#findobjectsbytypet\(findobjectsinactive\))
* [Object.FindAnyObjectByType(Type)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type\))
* [Object.FindAnyObjectByType(Type, FindObjectsInactive)](/engine/6000.6/script-reference/unityengine/object/findanyobjectbytype.md#findanyobjectbytype\(type-findobjectsinactive\))
* [Object.ToString()](/engine/6000.6/script-reference/unityengine/object/tostring.md)
* [Object.name](/engine/6000.6/script-reference/unityengine/object/name.md)
* [Object.hideFlags](/engine/6000.6/script-reference/unityengine/object/hideflags.md)

### Operators

| Operator                                                                           | Description                                                             |
| ---------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [operator ==](/engine/6000.6/script-reference/unityengine/object/op-equality.md)   | Compares two object references to see if they refer to the same object. |
| [bool](/engine/6000.6/script-reference/unityengine/object/op-implicit.md)          | Determines whether the object exists.                                   |
| [operator !=](/engine/6000.6/script-reference/unityengine/object/op-inequality.md) | Compares if two objects refer to a different object.                    |
