I want to insert a new clip into a track after pressing a button during runtime so I don’t have to manually key in the start frame of every clip from a notepad.
Problem is, I can’t find a method for getting the reference to the track to add the clip in. Drag and drop into a public TrackAsset property doesn’t work, and I tried this mthod of TimelineAsset.GetOutputTracks() but trying to get the TimelineAsset from PlayableDirector property (PlayableDirector.playableAsset) gets the timeline as PlayableAsset type instead, so I can’t use the method.
I also can’t create a new track asset from dragging and dropping the interested track into the assets folder.
Is there a way to get a track from a timeline from a playble director?
Version is 2020.3.17f1