Search Unity

How to get binding object of current track of Timeline

Discussion in 'Timeline' started by DunanStar, May 5, 2020.

  1. DunanStar

    DunanStar

    Joined:
    Jun 23, 2016
    Posts:
    12
    I have same type of several tracks in timeline.
    I must get binding object of each tracks.
    But I cannot get it.
    First, I made tracks dynamically in editor script and aligned target object by PlayableDirector.SetGenericBinding() method.
    But after that, I can't get target object of track from script.
    How do you think about it?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    PlayableDirector.GetGenericBinding(track); You need to cast to the correct type of the binding.
     
  3. DunanStar

    DunanStar

    Joined:
    Jun 23, 2016
    Posts:
    12
    Thanks very much. solved