Esempio n. 1
0
        public static void PreferencesGui()
        {
            EditorGUILayout.HelpBox($"Version {NeodroidInfo._Version}", MessageType.Info);

            if (!_preferences_loaded)
            {
                _EnableNeodroidDebug = EditorPrefs.GetBool(_debug_pref_key, false);
                _preferences_loaded  = true;
            }

            _EnableNeodroidDebug = EditorGUILayout.Toggle(_debug_pref_key, _EnableNeodroidDebug);

            EditorGUILayout.HelpBox("Enter import path of Neodroid!", MessageType.Info);

            NeodroidInfo._ImportLocation = EditorGUILayout.TextField(NeodroidInfo._ImportLocation);

            if (GUI.changed)
            {
                if (_EnableNeodroidDebug)
                {
                    DefineSymbolsFunctionality.AddDebugDefineSymbol();
                }
                else
                {
                    DefineSymbolsFunctionality.RemoveDebugDefineSymbol();
                }

                EditorPrefs.SetBool(_debug_pref_key, _EnableNeodroidDebug);
            }
        }
Esempio n. 2
0
 /// <summary>
 ///   Add define symbols as soon as Unity gets done compiling.
 /// </summary>
 static DefineSymbolsController()
 {
     DefineSymbolsFunctionality.AddDefineSymbols();
 }