Concrete Variant of the PlayerPrefOption template class used to store DebugCategorySettings objects. It overrides the Load, Save and SetToDefault functions of the base class, to save/load each member of the DebugCategorySettings object Every-time a new CatDebug category is registered, a new instance of this class is created, and if it doesn't already exist, is stored in PlayerPrefOptions. If the category IS found to exist in PlayerPrefOptions, it is assigned the categoryID in the stored in the found DebugCategorySettings.
|
| DebugCategorySettingsPlayerPref (DebugCategorySettings _defaultValue, int category, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=false) |
| Class constructor calls the base version constructor in PlayerPrefOption, and assigned the specified category.
|
|
override void | Load () |
| loads each member of the DebugCategorySettings from a persistent PlayerPrefOption
|
|
override void | Save () |
| saves each member of the DebugCategorySettings to a persistent PlayerPrefOption
|
|
override void | SetToDefault () |
| Sets the default value of the preference items to DebugCategorySettings.Default
|
|
| PlayerPrefOption (ValueType _defaultValue, string keyString, GUIContent guiLabel, bool _alwaysLoadAndSaveOnValueAccess=true) |
| Constructor takes almost all members as parameters, with the exception of the current value. The current preference value is set when loaded, if the key exists, or set to the default value, if new.
|
|