Method Create
Create(PlayableGraph, IEnumerable<TrackAsset>, GameObject, bool, bool)
Creates an instance of a Timeline
선언
public static ScriptPlayable<TimelinePlayable> Create(PlayableGraph graph, IEnumerable<TrackAsset> tracks, GameObject go, bool autoRebalance, bool createOutputs)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| 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 |
반환
| 타입 | 설명 |
|---|---|
| ScriptPlayable<TimelinePlayable> | A subgraph with the playable containing a TimelinePlayable behaviour as the root |