Breakroom is now Sinewave Campus. Book a meeting

SPlayableDirector

العميلالمكونات
في هذا الصنفPlay
  1. الدوال
  2. Play
  3. Stop
  4. Pause
  5. Resume
  6. الخصائص
  7. State
  8. Time
  9. InitialTime
  10. Duration
  11. GameObject
الأعضاء 9
دالةPlayInstantiates a Playable using the provided PlayableAsset and starts playback.
دالةStopStop playback of the current Playable and destroys the corresponding graph.
دالةPausePause playback of the currently running playable.
دالةResumeResume playing a paused playable.
خاصيةStateThe current playing state of the component.
خاصيةTimeThe component's current time.
خاصيةInitialTimeThe time at which the Playable should start when first played.
خاصيةDurationThe 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للقراءة فقط​

SGameObject GameObject {get; }

مثال

Lua
theGameObject = Space.Host.ExecutingObject.Director.GameObject