Question says it all.
Ive got a custom inspector, and I need to see if the user has Locked the inspector.
theres’s a cheating way:
public static bool InspectorIsLock()
{
var type = typeof(EditorWindow).Assembly.GetType("UnityEditor.InspectorWindow");
var window = EditorWindow.GetWindow(type);
PropertyInfo info = type.GetProperty("isLocked", BindingFlags.Public | BindingFlags.Instance);
return (bool)info.GetValue(window, null);
}