Class PrefabControlPlayable
Playable that controls and instantiates a Prefab.
Inherited Members
Namespace: UnityEngine.Timeline
Assembly: solution.dll
Syntax
public class PrefabControlPlayable : PlayableBehaviour, IPlayableBehaviour, ICloneable
Properties
| Name | Description |
|---|---|
| prefabInstance | The instance of the prefab created by this behaviour |
Methods
| Name | Description |
|---|---|
| Create(PlayableGraph, GameObject, Transform) | Creates a Playable with a PrefabControlPlayable behaviour attached |
| Initialize(GameObject, Transform) | Initializes the behaviour with a prefab and parent transform |
| OnBehaviourPause(Playable, FrameData) | This function is called when the Playable play state is changed to PlayState.Paused. |
| OnBehaviourPlay(Playable, FrameData) | This function is called when the Playable play state is changed to Playables.PlayState.Playing. |
| OnPlayableDestroy(Playable) | This function is called when the Playable that owns the PlayableBehaviour is destroyed. |