SPlayableDirector
ClientComponents
On this classPlay
- Functions
- Play
- Stop
- Pause
- Resume
- Properties
- State
- Time
- Initial
Time - Duration
- Game
Object
Members 9
| Function | Play | Instantiates a Playable using the provided PlayableAsset and starts playback. |
| Function | Stop | Stop playback of the current Playable and destroys the corresponding graph. |
| Function | Pause | Pause playback of the currently running playable. |
| Function | Resume | Resume playing a paused playable. |
| Property | State | The current playing state of the component. |
| Property | Time | The component's current time. |
| Property | InitialTime | The time at which the Playable should start when first played. |
| Property | Duration | The duration of the Playable in seconds. |
| Property | GameObject | – |
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
Example
Lua
theGameObject = Space.Host.ExecutingObject.Director.GameObject



