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?
GetComponentReturns the component of Type type if the GameObject has one attached, null if it doesn't. Will also return disabled components.
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.
TryGetComponentGets the component of the specified type, if it exists.
GetInstanceIDDevuelve el id de la instancia del objeto.
ToStringReturns the name of the object.

Funciones Estáticas

DestroyRemoves a GameObject, component or 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.
FindObjectsOfTypeGets a list of all loaded objects of Type 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.