Version: 2017.3

AnimatorStateMachine

class in UnityEditor.Animations

/

Hereda de:Object

Cambiar al Manual

Descripción

A graph controlling the interaction of states. Each state references a motion.

Variables

anyStatePositionThe position of the AnyState node.
anyStateTransitionsThe list of AnyState transitions.
behavioursThe Behaviour list assigned to this state machine.
defaultStateThe state that the state machine will be in when it starts.
entryPositionThe position of the entry node.
entryTransitionsThe list of entry transitions in the state machine.
exitPositionThe position of the exit node.
parentStateMachinePositionThe position of the parent state machine node. Only valid when in a hierachic state machine.
stateMachinesThe list of sub state machines.
statesThe list of states.

Funciones Públicas

AddAnyStateTransitionUtility function to add an AnyState transition to the specified state or statemachine.
AddEntryTransitionUtility function to add an incoming transition to the exit of it's parent state machine.
AddStateUtility function to add a state to the state machine.
AddStateMachineUtility function to add a state machine to the state machine.
AddStateMachineBehaviourAdds a state machine behaviour class of type stateMachineBehaviourType to the AnimatorStateMachine. C# Users can use a generic version.
AddStateMachineExitTransitionUtility function to add an outgoing transition from the source state machine to the exit of it's parent state machine.
AddStateMachineTransitionUtility function to add an outgoing transition from the source state machine to the destination.
GetStateMachineTransitionsGets the list of all outgoing state machine transitions from given state machine.
MakeUniqueStateMachineNameMakes a unique state machine name in the context of the parent state machine.
MakeUniqueStateNameMakes a unique state name in the context of the parent state machine.
RemoveAnyStateTransitionUtility function to remove an AnyState transition from the state machine.
RemoveEntryTransitionUtility function to remove an entry transition from the state machine.
RemoveStateUtility function to remove a state from the state machine.
RemoveStateMachineUtility function to remove a state machine from its parent state machine.
RemoveStateMachineTransitionUtility function to remove an outgoing transition from source state machine.
SetStateMachineTransitionsSets the list of all outgoing state machine transitions from given state machine.

Miembros heredados

Variables

hideFlags¿Debería el objeto estar oculto, guardado con la escena o modificable por el usuario?
nameEl nombre del objeto.

Funciones Públicas

GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the GameObject.

Funciones Estáticas

DestroyElimina un gameobject, componente o asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadHace que el objeto target no sea destruido automáticamente cuando se cargue una nueva escena.
FindObjectOfTypeDevuelve el primer objeto activo cargado de tipo type.
FindObjectsOfTypeDevuelve una lista de todos los objetos activos cargados de tipo type.
InstantiateClona el objeto original y devuelve el clon.

Operadores

bool¿Existe el objeto?
operator !=Compare si dos objetos se refieren a un objeto diferente.
operator ==Compara dos referencias de objeto para ver si se refieren al mismo objeto.