Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  2. Ever participated in one our Game Jams? Want pointers on your project? Our Evangelists will be available on Friday to give feedback. Come share your games with us!
    Dismiss Notice

Access list of clips from script through PlayableDirector

Discussion in 'Timeline' started by edwon, Oct 17, 2017.

  1. edwon

    edwon

    Joined:
    Apr 24, 2011
    Posts:
    197
    Is there a way to access clips and tracks from a MonoBehaviour that is referencing PlayableDirector?

    I want to be able to manipulate the timeline time by searching for clip start times on a track with custom playables on it.
     
  2. R40ul_OSG

    R40ul_OSG

    Joined:
    Sep 2, 2016
    Posts:
    43
    Have you tried this :
    Code (CSharp):
    1. foreach (var track in timelineAsset.GetOutputTracks())
    2.         {
    3.             foreach (var clip in track.GetClips())
    4.             {
    5.  
    6.             }
    7.         }
     
    NatCou likes this.
unityunity