Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Custom timeline track category

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

  1. Euricius

    Euricius

    Joined:
    Sep 3, 2017
    Posts:
    24
    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:
    24
    It works :) Thank you David!