PlayableDirector

class in UnityEngine.Playables

/

Hereda de:Behaviour


Implementa interfaces:IExposedPropertyTable

Cambiar al Manual

Descripción

Instantiates a PlayableAsset and controls playback of Playable objects.

Variables

durationThe duration of the Playable in seconds.
extrapolationModeControls how the time is incremented when it goes beyond the duration of the playable.
initialTimeThe time at which the Playable should start when first played.
playableAssetThe PlayableAsset that is used to instantiate a playable for playback.
playableGraphThe PlayableGraph created by the PlayableDirector.
playOnAwakeWhether the playable asset will start playing back as soon as the component awakes.
stateThe current playing state of the component. (Read Only)
timeThe component's current time. This value is incremented according to the PlayableDirector.timeUpdateMode when it is playing. You can also change this value manually.
timeUpdateModeControls how time is incremented when playing back.

Funciones Públicas

ClearGenericBindingClears the binding of a reference object.
ClearReferenceValueClears an exposed reference value.
DeferredEvaluateTells the PlayableDirector to evaluate it's PlayableGraph on the next update.
EvaluateEvaluates the currently playing Playable at the current time.
GetGenericBindingReturns a binding to a reference object.
GetReferenceValueRetreives an ExposedReference binding.
PausePauses playback of the currently running playable.
PlayInstatiates a Playable using the provided PlayableAsset and starts playback.
RebindPlayableGraphOutputsRebinds each PlayableOutput of the PlayableGraph.
RebuildGraphDiscards the existing PlayableGraph and creates a new instance.
ResumeResume playing a paused playable.
SetGenericBindingSets the binding of a reference object from a PlayableBinding.
SetReferenceValueSets an ExposedReference value.
StopStops playback of the current Playable and destroys the corresponding graph.

Events

pausedEvent that is raised when a PlayableDirector component has paused.
playedEvent that is raised when a PlayableDirector component has begun playing.
stoppedEvent that is raised when a PlayableDirector component has stopped.

Miembros heredados

Variables

enabledEnabled Behaviours are Updated, disabled Behaviours are not.
isActiveAndEnabledHas the Behaviour had active and enabled called?
gameObjectEl game object que tiene este componente adjunto. Un componente siempre está adjunto a un game object.
tagEl tag de este game object.
transformThe Transform attached to this GameObject.
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameEl nombre del objeto.

Funciones Públicas

BroadcastMessageLlama al método denominado methodName de todos los MonoBehaviour en este game objecto en cualquiera de sus hijos.
CompareTag¿Este game object está etiquetado con tag?
GetComponentDevuelve un componente de tipo type si el game object tiene a alguno adjuntado, o null si no lo tiene.
GetComponentInChildrenRetorna el componente de tipo type en el GameObject o cualquiera de sus hijos utilizando depth first search (busqueda de profundidad).
GetComponentInParentRetorna el componente de tipo type en el GameObject o cualquiera de sus padres.
GetComponentsRetorna todos los componentes de tipo type en el GameObject.
GetComponentsInChildrenRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus hijo.
GetComponentsInParentRetorna todos los componentes de tipo type en el GameObject o cualquiera de sus padres.
SendMessageLlama al método denominado methodName en cada MonoBehaviour de este game object.
SendMessageUpwardsLlama al método denominado methodName en todos los MonoBehaviour de este juego y en todos los ancestros del behaviour.
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.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
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.