Version: 5.3 (switch to 5.4b)
ЯзыкEnglish
  • C#
  • JS

Язык программирования

Выберите подходящий для вас язык программирования. Все примеры кода будут представлены на выбранном языке.

AnimatorStateTransition

class in UnityEditor.Animations

/

Наследует от:Animations.AnimatorTransitionBase

Предложить изменения

Успех!

Благодарим вас за то, что вы помогаете нам улучшить качество документации по Unity. Однако, мы не можем принять любой перевод. Мы проверяем каждый предложенный вами вариант перевода и принимаем его только если он соответствует оригиналу.

Закрыть

Ошибка внесения изменений

По определённым причинам предложенный вами перевод не может быть принят. Пожалуйста <a>попробуйте снова</a> через пару минут. И выражаем вам свою благодарность за то, что вы уделяете время, чтобы улучшить документацию по Unity.

Закрыть

Отменить

Руководство

Описание

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.

Открытые функции

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. You are strongly recommended to use Destroy instead.
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.