public static bool OpenAsset(int instanceID, int line) { bool open = isEnable && EditorWindow.focusedWindow.titleContent.text == "Project"; if (open) { ProjectConfigWindow.ShowWindow(); } return(open); }
public override void OnInspectorGUI() { GUI.enabled = false; base.OnInspectorGUI(); GUI.enabled = true; GUILayout.Space(10); if (GUILayout.Button("Open")) { ProjectConfigWindow.ShowWindow(); } }