Method Create
Create(PlayableGraph, GameObject, Transform)
Creates a Playable with a PrefabControlPlayable behaviour attached
Declaration
public static ScriptPlayable<PrefabControlPlayable> Create(PlayableGraph graph, GameObject prefabGameObject, Transform parentTransform)
Parameters
Type | Name | Description |
---|---|---|
PlayableGraph | graph | The PlayableGraph to inject the Playable into. |
GameObject | prefabGameObject | The prefab to instantiate from |
Transform | parentTransform | Transform to parent instance to. Can be null. |
Returns
Type | Description |
---|---|
ScriptPlayable<PrefabControlPlayable> | Returns a Playabe with PrefabControlPlayable behaviour attached. |