Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Is it possible to create more than one type of clip for a Track ?

Discussion in 'Timeline' started by Kiupe, Aug 31, 2017.

  1. Kiupe

    Kiupe

    Joined:
    Feb 1, 2013
    Posts:
    523
    Hello,

    I'm trying to create custom track in order to be able to access a custom Monobehavior and call methods on it. Using the wizard it's pretty easy to create a custom Track that will accept the behavior or create it when dragging an object onto it. But then, only one kind of clip will be available. So it seems that I have to create as much custom tracks as the number of methods I need to call in my custom Monobehavior.

    Am'I right ? If not, how can I create multiple clip for a specific track ?

    Thanks
     
  2. Drapan

    Drapan

    Joined:
    Apr 9, 2013
    Posts:
    14
    The built in animation track seems to do it by implementing multiple TrackClipType attributes, it seems like it should be as easy to just add another as is done by AnimationTrack, but doesn't seem to work. Is multiple clip types not supported on custom tracks?
     
  3. julienb

    julienb

    Unity Technologies

    Joined:
    Sep 9, 2016
    Posts:
    123
    Right now, multiple custom clips types per track is not supported. It is in our backlog though, so stay tuned!
     
  4. Drapan

    Drapan

    Joined:
    Apr 9, 2013
    Posts:
    14
    Does the same apply to subtracks? Had a peek at how override tracks are created for animation, and it seems that SupportsChildTracksAttribute is internal. Is there another solution available?