Search Unity

Question Custom timeline track category

Discussion in 'Timeline' started by Euricius, Feb 21, 2021.

  1. Euricius

    Euricius

    Joined:
    Sep 3, 2017
    Posts:
    25
    I found MenuCategoryAttribute attribute to set custom timeline category, but can't use it, because it has internal access modifier.
    Set special namespaces for custom tracks looks like a workaround. But its breaks project structure.

    Is it any valid way to set category for custom timeline tracks to organize drop-down menu of timeline window?
     
  2. DavidGeoffroy

    DavidGeoffroy

    Unity Technologies

    Joined:
    Sep 9, 2014
    Posts:
    542
    Au the moment, we read "/" in the DisplayName attribute as menu categories. So if you use [
    DisplayName("CategoryName/TrackName" )]
    for example, your track will be in the CategoryName section
     
    swingingtom and Euricius like this.
  3. Euricius

    Euricius

    Joined:
    Sep 3, 2017
    Posts:
    25
    It works :) Thank you David!