LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

This version of Unity is unsupported.

PlayableDirector.Play

public void Play(Playables.PlayableAsset asset, Playables.DirectorWrapMode mode);
public void Play(Playables.PlayableAsset asset);
public void Play();

Parameters

assetAn asset to instantiate a playable from.
modeWhat to do when the time passes the duration of the playable.

Description

Instatiates a Playable using the provided PlayableAsset and starts playback.