- Home /
Organize Add Component Menu
In my project, I've added quite a few of my scripts to the "Add Component" menu every prefab has using the AddComponentMenu() function. Problem is, Unity doesn't seem to sort the entries in that menu in any meaningful way. Is there any way to tell Unity to sort the entries in the Add Component menu, perhaps alphabetically?
Comment
Answer by kru · Feb 28, 2015 at 06:12 AM
You can use the AddComponentMenu attribute on your scripts to organize them in to folders within the menu. See http://docs.unity3d.com/ScriptReference/AddComponentMenu.html for more information.