Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Get track from a clip

Discussion in 'Timeline' started by GeniusKoala, Dec 2, 2021.

  1. GeniusKoala

    GeniusKoala

    Joined:
    Oct 13, 2017
    Posts:
    97
    Hi!

    I would need to access the track on which a custom clip is added. I created a custom Playable and I need to access its track at the creation of the clip please.
     
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    You can create a ClipEditor for your clip type, and override ClipEditor.OnCreate to get the track on creation.
     
    GeniusKoala likes this.