Method Create
Create(PlayableGraph, GameObject, PostPlaybackState)
Creates a ScriptPlayable with an ActivationControlPlayable behaviour attached
Declaration
public static ScriptPlayable<ActivationControlPlayable> Create(PlayableGraph graph, GameObject gameObject, ActivationControlPlayable.PostPlaybackState postPlaybackState)
Parameters
| Type | Name | Description |
|---|---|---|
| PlayableGraph | graph | PlayableGraph that will own the playable |
| GameObject | gameObject | The GameObject that triggered the graph build |
| ActivationControlPlayable.PostPlaybackState | postPlaybackState | The state to leave the gameObject after the graph is stopped |
Returns
| Type | Description |
|---|---|
| ScriptPlayable<ActivationControlPlayable> | Returns a playable that controls activation of a game object |