Skip to content

Instantly share code, notes, and snippets.

View ChameleonSloth's full-sized avatar

ChameleonSloth

View GitHub Profile
using System;
using System.Reflection;
using UnityEditor;
namespace Plugins.Gists.Editor
{
public static class InspectorLockToggle
{
[MenuItem("Tools/Toggle Lock &q")]
static void ToggleWindowLock() // Inspector must be inspecting something to be locked