Seems like a really simple one I can’t find an answer to anywhere…
[ MenuItem( "MyMenu/MyWindow" ) ] //creates a new menu tab
[ MenuItem( "Assets/Create/MyAsset" ) ] //Adds to the project window's create menu
[ MenuItem( "Hierarchy/Create/MyObjInTheScene" ) ] //Nope ( also creates a general menu tab, called "Hierarchy" )
I’ve also tried “Scene/” and “/”, and running out of ideas.
Sorry to necro this, but I found this question before finding a more up-to-date answer in the docs by searching the keywords of the accepted answer. From the documentation as of now in case anyone else ends up here:
…note that in order for a menu item
in “GameObject/” to be propagated to
the hierarchy Create dropdown and
hierarchy context menu, it must be
grouped with the other GameObject
creation menu items. This can be
achieved by setting its priority to 10
(see example below). Note that for
legacy purposes MenuItems in
“GameObject/Create Other” with no
explicit priority set will receive a
priority of 10 instead of the default
1000 - we encourage using a more
descriptive category name than “Create
Other” and explicitly setting the
priority to 10.