Breakroom is now Sinewave Campus. Book a meeting

SPlayableDirector

ClientComponents
On this classPlay
  1. Functions
  2. Play
  3. Stop
  4. Pause
  5. Resume
  6. Properties
  7. State
  8. Time
  9. InitialTime
  10. Duration
  11. GameObject
Members 9
FunctionPlayInstantiates a Playable using the provided PlayableAsset and starts playback.
FunctionStopStop playback of the current Playable and destroys the corresponding graph.
FunctionPausePause playback of the currently running playable.
FunctionResumeResume playing a paused playable.
PropertyStateThe current playing state of the component.
PropertyTimeThe component's current time.
PropertyInitialTimeThe time at which the Playable should start when first played.
PropertyDurationThe duration of the Playable in seconds.
PropertyGameObject–

Functions​

Play​

void Play()

Instantiates a Playable using the provided PlayableAsset and starts playback.

Returns

void

Example

Lua
Space.Host.ExecutingObject.Director.Play()

Stop​

void Stop()

Stop playback of the current Playable and destroys the corresponding graph.

Returns

void

Example

Lua
Space.Host.ExecutingObject.Director.Stop()

Pause​

void Pause()

Pause playback of the currently running playable.

Returns

void

Example

Lua
Space.Host.ExecutingObject.Director.Pause()

Resume​

void Resume()

Resume playing a paused playable.

Returns

void

Example

Lua
Space.Host.ExecutingObject.Director.Resume()

Properties​

StateRead only​

int State {get; }

The current playing state of the component.

Example

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.

Example

Lua
Space.Host.ExecutingObject.Director.Time = 10

InitialTime​

double InitialTime {get; set; }

The time at which the Playable should start when first played.

Example

Lua
Space.Host.ExecutingObject.Director.Time = 2

DurationRead only​

double Duration {get; }

The duration of the Playable in seconds.

Example

Lua
duration = Space.Host.ExecutingObject.Director.Duration

GameObjectRead only​

SGameObject GameObject {get; }

Example

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