How can you get the object a AnimationTrack is bound to given the AnimationTrack object

As the title says. I have access to the TimelineClip and from there I can get the TrackAsset. The question then is how do I get the gameObject the TrackAsset is assigned to?

Are you talking about the output Animator of the track? If so, the binding info is in the PlayableDirector. use PlayableDirector.GetGenericBinding(TrackAsset) to retrieve the Animator.
(Assets are ScriptableObects, which are not bounded to any single GameObject)

1 Like