Method Create
Create(PlayableGraph, IEnumerable<TrackAsset>, GameObject, bool, bool)
Creates an instance of a Timeline
Declaration
public static ScriptPlayable<TimelinePlayable> Create(PlayableGraph graph, IEnumerable<TrackAsset> tracks, GameObject go, bool autoRebalance, bool createOutputs)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayableGraph | graph | The playable graph to inject the timeline. |
| IEnumerable<TrackAsset> | tracks | The list of tracks to compile |
| GameObject | go | The GameObject that initiated the compilation |
| bool | autoRebalance | In the editor, whether the graph should account for the possibility of changing clip times |
| bool | createOutputs | Whether to create PlayableOutputs in the graph |
Returns
| Type | Description |
|---|---|
| ScriptPlayable<TimelinePlayable> | A subgraph with the playable containing a TimelinePlayable behaviour as the root |