예제 #1
0
 void Menu_ToggleIconMode()
 {
     s_IsIconGui.value = !s_IsIconGui.value;
     if (s_EditorToolbar != null)
     {
         DestroyImmediate(s_EditorToolbar);
     }
     s_EditorToolbar           = ScriptableObject.CreateInstance <EditorToolbar>();
     s_EditorToolbar.hideFlags = HideFlags.HideAndDontSave;
     s_EditorToolbar.InitWindowProperties(this);
 }
예제 #2
0
        void OpenEditorToolbar()
        {
            if (s_EditorToolbar != null)
            {
                DestroyImmediate(s_EditorToolbar);
            }

            s_EditorToolbar           = ScriptableObject.CreateInstance <EditorToolbar>();
            s_EditorToolbar.hideFlags = HideFlags.HideAndDontSave;
            s_EditorToolbar.InitWindowProperties(this);
        }
예제 #3
0
        void InitGUI()
        {
            if (s_EditorToolbar != null)
            {
                UObject.DestroyImmediate(s_EditorToolbar);
            }

            s_EditorToolbar           = ScriptableObject.CreateInstance <EditorToolbar>();
            s_EditorToolbar.hideFlags = HideFlags.HideAndDontSave;
            s_EditorToolbar.InitWindowProperties(this);

            VertexTranslationInfoStyle = new GUIStyle();
            VertexTranslationInfoStyle.normal.background = EditorGUIUtility.whiteTexture;
            VertexTranslationInfoStyle.normal.textColor  = new Color(1f, 1f, 1f, .6f);
            VertexTranslationInfoStyle.padding           = new RectOffset(3, 3, 3, 0);
        }