Search Unity

Question Anyway to create a custom timeline track header button?

Discussion in 'Timeline' started by SolarianZ, Apr 21, 2021.

  1. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    237
    I want to create a custom timeline track header button, but the base class `TrackDrawer` is non-public, there is no way to extend it unless I move the timeline source code from Packages to Assets.

    Is there any other way to implement it?

    upload_2021-4-21_12-4-51.png
     
  2. julienb

    julienb

    Unity Technologies

    Joined:
    Sep 9, 2016
    Posts:
    177
    Custom buttons on the track header are not supported. I'll add this to our feature requests list.
     
  3. SolarianZ

    SolarianZ

    Joined:
    Jun 13, 2017
    Posts:
    237
    Thank you!:)
     
  4. AverageProg

    AverageProg

    Joined:
    Jun 25, 2015
    Posts:
    38
    @julienb Any plans to support this feature yet?
    I have extended timelines to tween component values, and I wanted to add a simple button to change the drive mode of the Transform track from Global to Local without having to implement 2 different tracks
     
  5. GGevrinCarlier

    GGevrinCarlier

    Joined:
    Dec 22, 2023
    Posts:
    2
    Hello, still no news about supporting this feature since 3 years ? Or has it been postponed due to marketing strategy ?
     
  6. tsukimi

    tsukimi

    Joined:
    Dec 10, 2014
    Posts:
    80
    You could use asmref, and inherit
    TrackDrawer
    for your Track to draw custom button (maximum 1). See
    AnimationTrackDrawer
    to know how it add the record button.
    (the reason using asmref is because it is an internal class)