UnityToolbox
Brief documentation for all existing scripts.
 
Loading...
Searching...
No Matches
ProjectPrefs Class Reference

Project preferences. Just like the PlayerPrefs but within the editor. These are stored within a created resource folder.

Static Public Member Functions

static void SetString (string key, string value)
 Saves a string value to the project prefs.
 
static string GetString (string key)
 Reads a string value from the project prefs.
 

Member Function Documentation

◆ GetString()

static string ProjectPrefs.GetString ( string  key)
static
Parameters
keyThe key, which indentifies the value. See ProjectPrefKeys for UnityToolbox internal use.
Returns
The read value.
Exceptions
ArgumentException

Referenced by ResourcesUtil.GetLocalPath(), ResourcesUtil.GetProjectPath(), ResourcesUtil.GetResourcesPath(), UnityToolbox.Item.Management.Itemizer.Initialize(), UnityToolbox.UI.Localisation.Localizer.Initialize(), and ResourcesUtil.WriteFile().

◆ SetString()

static void ProjectPrefs.SetString ( string  key,
string  value 
)
static
Parameters
keyThe key, which indentifies the value. See ProjectPrefKeys for UnityToolbox internal use.
valueThe value to save.
Exceptions
ArgumentException

Referenced by ResourcesUtil.TrySetValidPath().