Exemplo n.º 1
0
        public static bool OpenAsset(int instanceID, int line)
        {
            bool open = isEnable && EditorWindow.focusedWindow.titleContent.text == "Project";

            if (open)
            {
                ProjectConfigWindow.ShowWindow();
            }
            return(open);
        }
Exemplo n.º 2
0
 public override void OnInspectorGUI()
 {
     GUI.enabled = false;
     base.OnInspectorGUI();
     GUI.enabled = true;
     GUILayout.Space(10);
     if (GUILayout.Button("Open"))
     {
         ProjectConfigWindow.ShowWindow();
     }
 }