ExtendRealityLtd / Malimbe

[Obsolete - No longer maintained] A collection of tools to simplify writing public API components for the Unity software.
MIT License
51 stars 11 forks source link

Auto create `AddComponentMenu` attribute to better sort scripts in the Unity component picker #32

Open thestonefox opened 5 years ago

thestonefox commented 5 years ago

Unity doesn't sort scripts into a nice collapsible folder structure based on the namespace in the component picker.

image

They rely on an [AddComponentMenu] attribute to be added to each class to tell Unity how best to organise the component in the component picker.

A way of having Malimbe apply this attribute to an entire namespace would be a great time saver.

Maybe that Malimbe weaver just takes the whole config in the config file instead of any attributes. Something like

NamespaceRegex="^Zinnia" Hidden="false"NamespaceRegex="^Tests.Zinnia" Hidden="true"