Skip to content

Instantly share code, notes, and snippets.

View KeaneGames's full-sized avatar
😎

Jacob Keane KeaneGames

😎
View GitHub Profile
@KeaneGames
KeaneGames / LockedInspectorPopup.cs
Created August 18, 2017 18:37
Adds a "Open locked inspector" command to the right click menu of the Hierarchy & Project View. Or just select an object and hit ctrl + i. Place the script in a folder named "Editor" somewhere in your unity project
/* Copyright (c) 2017 Jacob Keane <http://jacobkeane.co.uk>. All rights reserved.
This work is licensed under the terms of the MIT license. For a copy, see <https://opensource.org/licenses/MIT>. */
#if UNITY_EDITOR
using UnityEditor;
/// <summary>
/// A simple script to allow you to open a locked inspector for the currently selected object
/// Right click on a GameObject in either the Hierarchy or Project view and select "Open Locked Inspector"
/// Or press CTRL+I.