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

Creating an animation override track from code

Discussion in 'Timeline' started by panta, Sep 10, 2018.

  1. panta

    panta

    Joined:
    Aug 10, 2012
    Posts:
    71
    Hi,

    Is there an API to create and assign clips to an override track from code?
    upload_2018-9-10_11-23-17.png
    I looked all over the Scripting docs and couldn't find one

    Thank you!
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    Use TimelineAsset.CreateTrack<AnimationTrack>(parent, name) and pass the base track as the first (parent) parameter.
     
    senkal_ and panta like this.
  3. panta

    panta

    Joined:
    Aug 10, 2012
    Posts:
    71