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.

Space.Host.ExecutingObject.Director.Play()

Stop

void Stop ()

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

Space.Host.ExecutingObject.Director.Stop()

Pause

void Pause ()

Pause playback of the currently running playable.

Space.Host.ExecutingObject.Director.Pause()

Resume

void Resume ()

Resume playing a paused playable.

Space.Host.ExecutingObject.Director.Resume()

Properties

State

int State get

The current playing state of the component.

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.

Space.Host.ExecutingObject.Director.Time = 10

InitialTime

double InitialTime get set

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

Space.Host.ExecutingObject.Director.Time = 2

Duration

double Duration get

The duration of the Playable in seconds.

duration = Space.Host.ExecutingObject.Director.Duration

GameObject

SGameObject GameObject get

Property Description

theGameObject = Space.Host.ExecutingObject.Director.GameObject

Last updated

Sinespace® is a registered trademark of Sine Wave Entertainment Ltd, All Rights Reserved.