SPlayableDirector
العميلالمكونات
في هذا الصنفPlay
الأعضاء 9
| دالة | Play | Instantiates a Playable using the provided PlayableAsset and starts playback. |
| دالة | Stop | Stop playback of the current Playable and destroys the corresponding graph. |
| دالة | Pause | Pause playback of the currently running playable. |
| دالة | Resume | Resume playing a paused playable. |
| خاصية | State | The current playing state of the component. |
| خاصية | Time | The component's current time. |
| خاصية | InitialTime | The time at which the Playable should start when first played. |
| خاصية | Duration | The duration of the Playable in seconds. |
| خاصية | GameObject | – |
الدوال
Play
void Play()
Instantiates a Playable using the provided PlayableAsset and starts playback.
القيم المرجعة
void
مثال
Lua
Space.Host.ExecutingObject.Director.Play()
Stop
void Stop()
Stop playback of the current Playable and destroys the corresponding graph.
القيم المرجعة
void
مثال
Lua
Space.Host.ExecutingObject.Director.Stop()
Pause
void Pause()
Pause playback of the currently running playable.
القيم المرجعة
void
مثال
Lua
Space.Host.ExecutingObject.Director.Pause()
Resume
void Resume()
Resume playing a paused playable.
القيم المرجعة
void
مثال
Lua
Space.Host.ExecutingObject.Director.Resume()
الخصائص
Stateللقراءة فقط
int State {get; }
The current playing state of the component.
مثال
Lua
intState = Space.Host.ExecutingObject.Director.State
Time
double Time {get; set; }
The component's current time. This value is incremented according to the PlayableDirector.timeUpdateMode when it is playing. You can also change this value manually.
مثال
Lua
Space.Host.ExecutingObject.Director.Time = 10
InitialTime
double InitialTime {get; set; }
The time at which the Playable should start when first played.
مثال
Lua
Space.Host.ExecutingObject.Director.Time = 2
Durationللقراءة فقط
double Duration {get; }
The duration of the Playable in seconds.
مثال
Lua
duration = Space.Host.ExecutingObject.Director.Duration
GameObjectللقراءة فقط
مثال
Lua
theGameObject = Space.Host.ExecutingObject.Director.GameObject



