SPlayableDirector
Index
Functions Index
| Function Name |
|---|
| void Play () |
| void Stop () |
| void Pause () |
| void Resume () |
Properties Index
| Property Name |
|---|
int State get |
double Time get set |
double InitialTime get set |
double Duration get |
SGameObject GameObject get |
Functions
Play
void Play ()
Instantiates a Playable using the provided PlayableAsset and starts playback.
- Lua
Space.Host.ExecutingObject.Director.Play()
Stop
void Stop ()
Stop playback of the current Playable and destroys the corresponding graph.
- Lua
Space.Host.ExecutingObject.Director.Stop()
Pause
void Pause ()
Pause playback of the currently running playable.
- Lua
Space.Host.ExecutingObject.Director.Pause()
Resume
void Resume ()
Resume playing a paused playable.
- Lua
Space.Host.ExecutingObject.Director.Resume()
Properties
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
Property Description
- Lua
theGameObject = Space.Host.ExecutingObject.Director.GameObject