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

Extending the Timeline GUI

Discussion in 'Timeline' started by kogtech7, Sep 7, 2018.

  1. kogtech7

    kogtech7

    Joined:
    Jul 31, 2017
    Posts:
    10
    Hey all,

    I feel it would be useful to expose more of the TImeline window's GUI functions. My goal was to add right click options to a custom track - but this menu is not exposed.

    I tried to circumvent this by creating a MenuItem with a keyboard shortcut and validation restricting it to when the track was selected. When activated, it would open a GenericMenu at the mouse position. However, since OnGUI of the Timeline window is not exposed, I can't hook into Event.Current.MousePosition - and thus can't position the menu correctly.

    Being able to add options to the menus and access Timeline's built in conversion from screen space to Timeline space (seen when you create a clip at the mouse position) would go a long way. Might this happen in the future, or is there another solution?
     
  2. seant_unity

    seant_unity

    Unity Technologies

    Joined:
    Aug 25, 2015
    Posts:
    1,516
    This is definitely something we are looking to add/expose in timeline, with an eye towards the 2019.x releases.
     
    senkal_ and kogtech7 like this.
  3. kogtech7

    kogtech7

    Joined:
    Jul 31, 2017
    Posts:
    10
    Good to hear, thank you!
     
  4. amatiasq

    amatiasq

    Joined:
    Jun 8, 2017
    Posts:
    3
    Dec 2022, any update on this?