This is an old question however for my purposes you can set [AddComponentMenu("name as string")]
This will set the display name of the component and can put the component under a given menu; handy if you are a content/asset developer for example
[AddComponentMenu("myName/myProduct/v1/dohicky (v1)")]
and
[AddComponentMenu("myName/myProduct/v2/dohicky (v2)")]
This will cause the Add Component button in the inspector to show a folder structure also if they search for dohicky they will see **dohicky (v1)** and **dohicky (v2)** even if the scripts them selves have the same name. Again probably not what the OP was looking for but the question has come up several times RE set or change component display name so thought it might help others.
↧