U_Editor Inspector 代码控制锁定
Type t = typeof(EditorWindow).Assembly.GetType("UnityEditor.InspectorWindow");
var window = EditorWindow.GetWindow(t);
t.GetProperty("isLocked").SetValue(window, false);
Type t = typeof(EditorWindow).Assembly.GetType("UnityEditor.InspectorWindow");
var window = EditorWindow.GetWindow(t);
t.GetProperty("isLocked").SetValue(window, false);