예제 #1
0
        public static bool Header(string text, string key, Color?color = null, bool defaultState = true)
        {
            var state = ProjectPrefs.GetBool(key, defaultState);

            EditorGUI.BeginChangeCheck();

            state = Header(text, state, color);

            if (EditorGUI.EndChangeCheck())
            {
                ProjectPrefs.SetBool(key, state);
            }

            return(state);
        }
예제 #2
0
        public static bool DrawHeader(string text, string key, Color?color = null)
        {
            var state = ProjectPrefs.GetBool(key, true);

            GUI.changed = false;

            state = DrawHeader(text, state, color);

            if (GUI.changed)
            {
                ProjectPrefs.SetBool(key, state);
            }

            return(state);
        }
예제 #3
0
 private static void InitializeOnLoadMethod()
 {
     LogEnable = ProjectPrefs.GetBool(PrefsKey, true);
 }