Method CreatePlayable
CreatePlayable(PlayableGraph, GameObject)
Overrides PlayableAsset.CreatePlayable(). Not used in Timeline.
선언
public override sealed Playable CreatePlayable(PlayableGraph graph, GameObject go)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| PlayableGraph | graph | The graph to inject playables into.The game object which initiated the build. |
| GameObject | go | The graph to inject playables into.The game object which initiated the build. |
반환
| 타입 | 설명 |
|---|---|
| Playable | The playable injected into the graph, or the root playable if multiple playables are injected. |
오버라이드
CreatePlayable(PlayableGraph, GameObject, TimelineClip)
Constructs a Playable from a TimelineClip.
선언
protected virtual Playable CreatePlayable(PlayableGraph graph, GameObject gameObject, TimelineClip clip)
파라미터
| 타입 | 이름 | 설명 |
|---|---|---|
| PlayableGraph | graph | PlayableGraph that will own the playable. |
| GameObject | gameObject | The GameObject that builds the PlayableGraph. |
| TimelineClip | clip | The TimelineClip to construct a playable for. |
반환
| 타입 | 설명 |
|---|---|
| Playable | A playable that will be set as an input to the Track Mixer playable, or Playable.Null if the clip does not have a valid PlayableAsset |
참고
By default, this method invokes Playable.CreatePlayable, sets animated properties, and sets the speed of the created playable. Override this method to change this default implementation.
예외
| 타입 | 조건 |
|---|---|
| ArgumentException | Thrown if the specified PlayableGraph is not valid. |
| ArgumentNullException | Thrown if the specified TimelineClip is not valid. |