/// <summary> /// /// </summary> private static void DrawGUI() { using (new PreferenceLayoutScope()) { EditorGUI.BeginChangeCheck(); Pref.i.enableProjectSettingsProvider = HEditorGUILayout.ToggleLeft(S._ProjectSettingsProvider, Pref.i.enableProjectSettingsProvider); Pref.i.iconOpenCSProject = HEditorGUILayout.GUIDObjectField <Texture2D>(nameof(Pref.i.iconOpenCSProject).nicify(), Pref.i.iconOpenCSProject); if (EditorGUI.EndChangeCheck()) { EditorToolbar.s_styles.LoadProjectIcon(); EditorToolbar.Repaint(); Pref.Save(); } if (Pref.i.enableProjectSettingsProvider) { return; } GUILayout.Space(8f); GUILayout.Label(S._ProjectSettings, "ShurikenModuleTitle"); #if UNITY_2018_3_OR_NEWER EditorToolbarSettingsProvider.DrawGUI(); #endif } }