PlayableDirector

class in UnityEngine.Playables

/

Inherits from:Behaviour


Implements interfaces:IExposedPropertyTable

Switch to Manual

Description

实例化 PlayableAsset 并控制 Playable 对象的播放。

Variables

durationPlayable 的持续时间,以秒为单位。
extrapolationMode控制时间在超过可播放项持续时间时的递增方式。
initialTime初次播放时,Playable 应该开始的时间。
playableAsset用于实例化可播放项以进行播放的 PlayableAsset。
playableGraph PlayableDirector 创建的 PlayableGraph。
playOnAwake可播放资源是否会在组件被唤醒后立即播放。
state组件的当前播放状态。(只读)
time组件的当前时间。此值将在 PlayableDirector.timeUpdateMode 播放时随之递增。您也可以手动更改此值。
timeUpdateMode控制播放时时间的递增方式。

Public Functions

ClearGenericBindingClears the binding of a reference object.
ClearReferenceValue清除公开的参考值。
DeferredEvaluate通知 PlayableDirector 在下次更新时评估其 PlayableGraph。
Evaluate在当前 time 评估当前播放的 Playable。
GetGenericBinding返回对引用对象的绑定。
GetReferenceValue检索 ExposedReference 绑定。
Pause暂停播放当前运行的可播放项。
Play使用提供的 PlayableAsset 实例化 Playable 并开始进行播放。
RebindPlayableGraphOutputsRebinds each PlayableOutput of the PlayableGraph.
RebuildGraph丢弃现有 PlayableGraph 并创建一个新实例。
Resume恢复播放暂停的可播放项。
SetGenericBinding通过 PlayableBinding 设置引用对象的绑定。
SetReferenceValue设置 ExposedReference 值。
Stop停止播放当前 Playable 并销毁相应图。

Events

pausedPlayableDirector 组件暂停后所引发的事件。
playedPlayableDirector 组件开始播放时所引发的事件。
stoppedPlayableDirector 组件停止后所引发的事件。

Inherited members

Variables

enabled启用的 Behaviour 可更新,禁用的 Behaviour 不可更新。
isActiveAndEnabledHas the Behaviour had active and enabled called?
gameObject此组件附加到的游戏对象。始终将组件附加到游戏对象。
tag此游戏对象的标签。
transform附加到此 GameObject 的 Transform。
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
name对象的名称。

Public Functions

BroadcastMessage调用此游戏对象或其任何子项中的每个 MonoBehaviour 上名为 methodName 的方法。
CompareTag此游戏对象是否使用 tag 进行了标记?
GetComponent如果游戏对象附加了类型为 type 的组件,则将其返回,否则返回 null。
GetComponentInChildren使用深度首次搜索返回 GameObject 或其任何子项中类型为 type 的组件。
GetComponentInParent返回 GameObject 或其任何父项中类型为 type 的组件。
GetComponents返回 GameObject 中类型为 type 的所有组件。
GetComponentsInChildren返回 GameObject 或其任何子项中类型为 type 的所有组件。
GetComponentsInParent返回 GameObject 或其任何父项中类型为 type 的所有组件。
SendMessage调用此游戏对象中的每个 MonoBehaviour 上名为 methodName 的方法。
SendMessageUpwards调用此游戏对象中的每个 MonoBehaviour 上或此行为的每个父级上名为 methodName 的方法。
GetInstanceID返回对象的实例 ID。
ToString返回 GameObject 的名称。

Static Functions

Destroy删除 GameObject、组件或资源。
DestroyImmediate立即销毁对象 /obj/。强烈建议您改用 Destroy。
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindObjectOfType返回第一个类型为 type 的已加载的激活对象。
FindObjectsOfType返回所有类型为 type 的已加载的激活对象的列表。
Instantiate克隆 original 对象并返回克隆对象。

Operators

bool该对象是否存在?
operator !=比较两个对象是否引用不同的对象。
operator ==比较两个对象引用,判断它们是否引用同一个对象。