Ejemplo n.º 1
0
        public override void OnInspectorGUI()
        {
            EditorGUIUtility.labelWidth = EditorVariables.MediumLabelWidth;
            serializedObject.Update();
            SelectedTab.intValue = GUILayout.Toolbar(SelectedTab.intValue, ToolbarTabs);
            GUILayout.Space(6);
            EditorGUILayout.LabelField(string.Empty, GUI.skin.horizontalSlider);
            GUILayout.Space(6);
            switch (SelectedTab.intValue)
            {
            case 0: DrawGeneralVariables(); break;

            case 1: UIEditor.OnInspectorGUI(); break;

            case 2: ButtonSettingsEditor.OnInspectorGUI(); break;

            case 3: OpenCreateInterface(); break;

            default: return;
            }
            GUILayout.Space(10);

            serializedObject.ApplyModifiedProperties();

            //base.OnInspectorGUI();
        }
Ejemplo n.º 2
0
 void OnGUI()
 {
     Instance = this;
     if (editor != null)
     {
         scroll = EditorGUILayout.BeginScrollView(scroll);
         editor.OnInspectorGUI();
         editor.DrawHelper();
         EditorGUILayout.EndScrollView();
     }
 }