Object Lock Window

Author: ChemiKhazi

This editor window simply helps set the HideFlags of game objects to NotEditable and optionally lets you ignore selecting NotEditable objects in the scene. Useful if you have objects you don't want to edit in the scene but still want visible. Requires EditorGUIExtension.

Installation
Save EditorGUIExtension.cs and then save the script below to ObjectLockWindow.cs and put them in an Editor directory.

Usage instructions
The window appears under the menu "Window>Object Lock". Pressing "Lock Selection" locks any selected objects and objects in its hierarchy. "Lock Selected Only" will only lock the selected object but not the objects under it. Toggle "Ignore Locked Objects" to ensure you won't select locked objects in the scene view.