Breakroom is now Sinewave Campus. Book a meeting

SPlayableDirector

客户端组件
在此类中Play
  1. 函数
  2. Play
  3. Stop
  4. Pause
  5. Resume
  6. 属性
  7. State
  8. Time
  9. InitialTime
  10. Duration
  11. GameObject
成员 9
函数PlayInstantiates a Playable using the provided PlayableAsset and starts playback.
函数StopStop playback of the current Playable and destroys the corresponding graph.
函数PausePause playback of the currently running playable.
函数ResumeResume playing a paused playable.
属性StateThe current playing state of the component.
属性TimeThe component's current time.
属性InitialTimeThe time at which the Playable should start when first played.
属性DurationThe duration of the Playable in seconds.
属性GameObject–

函数​

Play​

void Play()

Instantiates a Playable using the provided PlayableAsset and starts playback.

返回值

void

示例

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

Stop​

void Stop()

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

返回值

void

示例

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

Pause​

void Pause()

Pause playback of the currently running playable.

返回值

void

示例

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

Resume​

void Resume()

Resume playing a paused playable.

返回值

void

示例

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

属性​

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; }

示例

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