EditorPrefOption | ( | ValueType | _defaultValue, |
string | keyString, | ||
GUIContent | guiLabel, | ||
bool | _alwaysLoadAndSaveOnValueAccess = true |
||
) |
_defaultValue | When initialized or Reset, the preference's value will be set to this. |
keyString | A unique string that specifies this preference. |
guiLabel | The GUIContent that can be displayed for this preference. |
_alwaysLoadAndSaveOnValueAccess | When true (default), the Preference will be Loaded and Saved every-time Value is accessed. Otherwise Load and Save will need to be Called manually, and a cashed value will be used. |