public Preferences() { tiled2UnityPath = new EditorPrefsString(PREFIX + "tiled2UnityPath", string.Empty); vertexScale = new EditorPrefsFloat(PREFIX + "vertexScale", 0.01f); exitOnComplete = new EditorPrefsBool(PREFIX + "exitOnComplete", true); hideWindow = new EditorPrefsBool(PREFIX + "hideWindow", true); timeout = new EditorPrefsInt(PREFIX + "timeout", 10000); }
static RainbowFoldersPreferences() { var homeLabel = new GUIContent("Folder Location", HOME_FOLDER_HINT); HOME_FOLDER_PREF = new EditorPrefsString(HOME_FOLDER_PREF_KEY + ProjectName, homeLabel, HOME_FOLDER_DEFAULT); HomeFolder = HOME_FOLDER_PREF.Value; var modifierLabel = new GUIContent("Modifier Key", MOD_KEY_HINT); MODIFIER_KEY_PREF = new EditorPrefsModifierKey(MOD_KEY_PREF_KEY + ProjectName, modifierLabel, MOD_KEY_DEFAULT); ModifierKey = MODIFIER_KEY_PREF.Value; }
static RainbowHierarchyPreferences() { var homeLabel = new GUIContent("Folder Location", HOME_FOLDER_HINT); HOME_FOLDER_PREF = new EditorPrefsString(HOME_FOLDER_PREF_KEY + ProjectName, homeLabel, HOME_FOLDER_DEFAULT); HomeFolder = HOME_FOLDER_PREF.Value; var modifierLabel = new GUIContent("Modifier Key", MOD_KEY_HINT); MODIFIER_KEY_PREF = new EditorPrefsModifierKey(MOD_KEY_PREF_KEY + ProjectName, modifierLabel, MOD_KEY_DEFAULT); ModifierKey = MODIFIER_KEY_PREF.Value; var hideConfigLabel = new GUIContent("Hide Config", HIDE_CONFIG_HINT); HIDE_CONFIG_PREF = new EditorPrefsBoolean(HIDE_CONFIG_PREF_KEY + ProjectName, hideConfigLabel, HIDE_CONFIG_DEFAULT); HideConfig = HIDE_CONFIG_PREF.Value; }
static FarlandSkiesPreferences() { HOME_FOLDER_PREF = new EditorPrefsString(HOME_FOLDER_PREF_KEY + ProjectName, "Folder Location", HOME_FOLDER_DEFAULT); HomeFolder = HOME_FOLDER_PREF.Value; }