CreateGameObjectLocal

Author: Antony Blackett

Description
Adds an empty GameObject to the currently active GameObject (GameObject in the inspector). If no GameObject is selected then it will be added to the scene like the Create Empty command. If creating the new object breaks a prefab then you will be warned like normal.

Undo works as you'd expect.

There is a keyboard shortcut as well Alt + Shift + N.

Usage
Place the script inside a folder named Editor. e.g. Assets/Editor

Select an object in the scene and select GameObject -> Create Empty Local or use the shortcut Alt + Shift + N.

Enjoy!