Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Feature Request Can we please get AddComponentMenu attribute for RenderFeature?

Discussion in 'Universal Render Pipeline' started by CaffeinatedCoolaid, May 24, 2021.

  1. CaffeinatedCoolaid


    May 10, 2021
    The title pretty much sums it up. Currently when adding the RenderFeature's it uses the script name which is horribly and when you have assets that include RenderFeatures the list quickly grows to a large mess of one giant list.

    The default display behavior in the add feature dropdown should be the script name without "Feature" or "RenderFeature" to allow appropriate naming of scripts. Also if two or more features appear with the same name and no [AddComponentMenu] attribute the default display should be scriptname(first item of namespace).

    Code (CSharp):
    1. namespace Foo.MoreFoo.Features
    2. {  //same name as unity one
    3.   class RenderObjectsFeature : ScriptableRenderFeature
    4.   {
    5.       .....
    6.   }
    7. }

    in the drop down menu the items would display as
    • RenderObjects(UnityEngine)
    • RenderObjects(Foo)
    Last edited: May 24, 2021