I followed a tutorial to create a text custom track in Unity Timeline. I want to bind the track's key to a subtitle GameObject with TextMeshProUGUI through script. Basically, I am using the method below:
playableDirector.SetGenericBinding(track, subtitle);
This is the outcome in the timeline:
This is the outcome in the timeline, if I just drag the same object:
The component is not appearing in the first picture, why?
Here is another test I did after manually referencing:
var subtitle = playableDirector.GetGenericBinding(track);
playableDirector.ClearGenericBinding(track);
playableDirector.SetGenericBinding(track, subtitle);
Debug.Log(subtitle.GetType());