Hey Guys,
I was wondering if there was a way of implementing a dynamic submenu system inside the Unity Editor.
The Unity docs only tell of a static way of defining them, as far as I know.
I desire to make a generated list of submenu for each of the directory in chosen folder within my assets folder.
This is an example image and code of the dynamic (Unity docs) way of doing it:
// Add a menu item with multiple levels of nesting
[MenuItem("Tools/SubMenu/Option")]
private static void NewNestedOption()
{
}
Source of code: Editor Scripting - Unity Learn