A simple C# script for unity to spawn a prefab into hierarchy and ping it in the Editor.
-
Put the .cs file inside /Assets/Editor. (Create the folder Editor if it doesn't exist.)
-
Insert your target GUID of the prefab you wish to spawn with this script in Line 8.
-
Adjust the menu item in Line 10 to your liking.
-
Find the new toolbar option in your Editor, press to spawn.
Thats it.
None, use as you please.