AddComponentMenu sub-folder sort order?

Things are getting a bit cumbersome in my project, so I’ve started organizing things with AddComponentMenu but the order of the sub-folders appears to be random (possibly in order of creation). Is there any solution to this?

[AddComponentMenu("Remnant/Messaging/Message Hub")]
public class MessageHub : MonoBehaviour

My gut says I’m going to be stuck with this.

According to the documentation: Unity - Scripting API: AddComponentMenu

You have the componentOrder variable to mark exactly what order you’d like every component to have.

EDIT: For the record, as this item keeps appearing on searches: a detailed explanation on sub-menu order is here:

2 Likes