Esempio n. 1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("Edit Style"))
            {
                EditStyleWindow.Open();
            }
        }
Esempio n. 2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            if (GUILayout.Button("Edit Style"))
            {
                if (EditorWindow.HasOpenInstances <EditStyleWindow>())
                {
                    EditorWindow.FocusWindowIfItsOpen <EditStyleWindow>();
                }
                else
                {
                    EditStyleWindow.ShowDefaultWindow();
                }
            }
        }