Timeline track names not unique ?

Hi guys,

I noticed that in one Timeline multiple tracks can have the same name. Do you confirm it is the expected behavior ?

Thanks

Yes, they can have the same name.

Ok, so if I want to get an unique information about a track I could use the PlayableBinding.sourceObject.GetInstanceID() ?

You could give them unique names and use that to get specific information about a track.

Yes, in the case of timeline, the source object is actually a reference to the track.

Hum, how are those IDs created ? I tried to use those IDs in order to “save” Timeline scene cross-references but when I open the project in an other computer an ID for a same Track (source object) it’s not the same as on my computer. Is that normal ?

Thanks

InstanceIDs can change between runs of the editor. You should use a UnityEngine.Object field directly to store the reference, instead of an int.

Tracks are assets, so a reference to them can be stored from any scene.

Ho, thank for the tips !