SPlayableDirector
Dans cette classePlay
- Fonctions
- Play
- Stop
- Pause
- Resume
- Propriétés
- State
- Time
- Initial
Time - Duration
- Game
Object
| Fonction | Play | Instantiates a Playable using the provided PlayableAsset and starts playback. |
| Fonction | Stop | Stop playback of the current Playable and destroys the corresponding graph. |
| Fonction | Pause | Pause playback of the currently running playable. |
| Fonction | Resume | Resume playing a paused playable. |
| Propriété | State | The current playing state of the component. |
| Propriété | Time | The component's current time. |
| Propriété | InitialTime | The time at which the Playable should start when first played. |
| Propriété | Duration | The duration of the Playable in seconds. |
| Propriété | GameObject | – |
Fonctions
Play
Instantiates a Playable using the provided PlayableAsset and starts playback.
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.Director.Play()
Stop
Stop playback of the current Playable and destroys the corresponding graph.
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.Director.Stop()
Pause
Pause playback of the currently running playable.
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.Director.Pause()
Resume
Resume playing a paused playable.
Valeurs de retour
void
Exemple
Space.Host.ExecutingObject.Director.Resume()
Propriétés
StateLecture seule
The current playing state of the component.
Exemple
intState = Space.Host.ExecutingObject.Director.State
Time
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
Space.Host.ExecutingObject.Director.Time = 10
InitialTime
The time at which the Playable should start when first played.
Exemple
Space.Host.ExecutingObject.Director.Time = 2
DurationLecture seule
The duration of the Playable in seconds.
Exemple
duration = Space.Host.ExecutingObject.Director.Duration
GameObjectLecture seule
Exemple
theGameObject = Space.Host.ExecutingObject.Director.GameObject



