Method CreatePlayable
CreatePlayable(GhostAnimationController, PlayableGraph, List<GhostPlayableBehaviour>)
Create a playable for this node. The behaviours List must be populated with all GhostPlayableBehaviour which require a call to PreparePredictedData. If a GhostPlayableBehaviour is not added to that list the prediction update will not be called. This can create a GhostPlayableBehaviour which contains mixers, clips, references to other assets etc.
Declaration
public abstract Playable CreatePlayable(GhostAnimationController controller, PlayableGraph graph, List<GhostPlayableBehaviour> behaviours)
Parameters
Type | Name | Description |
---|---|---|
GhostAnimationController | controller | GhostAnimationController to construct playable from. |
PlayableGraph | graph | PlayableGraph used to manage creation and destruction of playables. |
List<GhostPlayableBehaviour> | behaviours | Populated list to call PreparePredictedData(NetworkTick, float, bool) on. |
Returns
Type | Description |
---|---|
Playable | Playable constructed for this node. |