So i have the following track:
[TrackBindingType(typeof(Transform))]
[TrackClipType(typeof(AddBloodClip))]
public class AddBloodTrack : TrackAsset
{
}
How can i get the TrackBinding in my clip?
i have tried the following:
public HumanBodyBones bone;
public ExposedReference<Transform> target;
public override Playable CreatePlayable(PlayableGraph graph, GameObject owner)
{
var playable = ScriptPlayable<AddBloodBehaviour>.Create(graph);
AddBloodBehaviour epb = playable.GetBehaviour();
epb.target = target.Resolve(graph.GetResolver());
epb.bone = bone;
return playable;
}
but without luck?