Beispiel #1
0
        void OnGUI()
        {
            if (win == null)
            {
                OpenWindow();
            }
            if (!IsInitialized)
            {
                Initialize();
            }

            EditorGUI.BeginChangeCheck();
            WindowHelper.OnGUIFirst(position.width);

            DrawContents();

            WindowHelper.OnGUIEnd();

            if (WindowHelper.Data != null && EditorGUI.EndChangeCheck())
            {
                EditorUtility.SetDirty(WindowHelper.Data);
            }
        }
Beispiel #2
0
        void OnGUI()
        {
            if (win == null)
            {
                OpenWindow();
                if (WindowHelper.CurCategory(selectCategoryId) != null)
                {
                    WindowHelper.CurCategory(selectCategoryId).Initialize();
                }
            }

            EditorGUI.BeginChangeCheck();
            WindowHelper.OnGUIFirst(position.width);

            DrawContents();
            EventProcess(Event.current);

            WindowHelper.OnGUIEnd();

            if (WindowHelper.Data != null && EditorGUI.EndChangeCheck())
            {
                EditorUtility.SetDirty(WindowHelper.Data);
            }
        }