Is there an Attribute to change script display name ?

Hey,

I have few scripts with identical names into my hierarchy (from different namespaces). As they display with the same name in the AddComponent search tool, it’s difficult to differentiate one from another.

Is it possible to change the name displayed here without changing script’s file name OR to display the script hierarchy in the search tool ?

Ok I found out the AddComponentMenu attribute that meet my needs.

[AddComponentMenu("Any/Custom/Path/AnyCustomNameThatWillReplaceClassName")]
public class Viewer : MonoBehaviour
{

}
3 Likes