Search Unity

Feature Request Can we please get AddComponentMenu attribute for RenderFeature?

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

  1. CaffeinatedCoolaid

    CaffeinatedCoolaid

    Joined:
    May 10, 2021
    Posts:
    59
    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).

    Example:
    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