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); }
void OpenEditorToolbar() { if (s_EditorToolbar != null) { DestroyImmediate(s_EditorToolbar); } s_EditorToolbar = ScriptableObject.CreateInstance <EditorToolbar>(); s_EditorToolbar.hideFlags = HideFlags.HideAndDontSave; s_EditorToolbar.InitWindowProperties(this); }
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); }