ExtendRealityLtd / ExtendRealityLtd/Malimbe

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

Open
#32 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
C#
Stars
52
Forks
10
PR merge metrics
No merged PRs in 30d

Description

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

![image](https://user-images.githubusercontent.com/1029673/53245277-32b90200-36a5-11e9-8ef1-ee09f8d30aca.png)

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"`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.