Breakroom is now Sinewave Campus. Book a meeting

SPlayableDirector

ClientComposants
Dans cette classePlay
  1. Fonctions
  2. Play
  3. Stop
  4. Pause
  5. Resume
  6. Propriétés
  7. State
  8. Time
  9. InitialTime
  10. Duration
  11. GameObject
Membres 9
FonctionPlayInstantiates a Playable using the provided PlayableAsset and starts playback.
FonctionStopStop playback of the current Playable and destroys the corresponding graph.
FonctionPausePause playback of the currently running playable.
FonctionResumeResume playing a paused playable.
PropriétéStateThe current playing state of the component.
PropriétéTimeThe component's current time.
PropriétéInitialTimeThe time at which the Playable should start when first played.
PropriétéDurationThe duration of the Playable in seconds.
PropriétéGameObject–

Fonctions​

Play​

void Play()

Instantiates a Playable using the provided PlayableAsset and starts playback.

Valeurs de retour

void

Exemple

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

Stop​

void Stop()

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

Valeurs de retour

void

Exemple

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

Pause​

void Pause()

Pause playback of the currently running playable.

Valeurs de retour

void

Exemple

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

Resume​

void Resume()

Resume playing a paused playable.

Valeurs de retour

void

Exemple

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

Propriétés​

StateLecture seule​

int State {get; }

The current playing state of the component.

Exemple

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.

Exemple

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

InitialTime​

double InitialTime {get; set; }

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

Exemple

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

DurationLecture seule​

double Duration {get; }

The duration of the Playable in seconds.

Exemple

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

GameObjectLecture seule​

SGameObject GameObject {get; }

Exemple

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