Summary
Creates an Animancer.AnimancerPlayable
in an existing UnityEngine.Playables.PlayableGraph
.
Syntax
protected static T Create<T>(PlayableGraph graph, T template) where T : AnimancerPlayable, new()
Examples
When inheriting from
Animancer.AnimancerPlayable
, it is recommended to give your class a field like the
following to use as the `template` for this method:
private static readonly MyAnimancerPlayable Template = new MyAnimancerPlayable();
Type Parameters
Parameters
Name |
Type |
Description |
graph |
PlayableGraph |
|
template |
T |
|
Return Value