DebugCategorySettingsPlayerPref Class Reference

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.

Public Member Functions

 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
 
- Public Member Functions inherited from PlayerPrefOption< DebugCategorySettings >
 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.
 

Static Public Member Functions

static string DebugPrefKeyByIndex (int key_index)
 Gets the key for a DebugCategorySettings with the specified index
 
+ Inheritance diagram for DebugCategorySettingsPlayerPref:
+ Collaboration diagram for DebugCategorySettingsPlayerPref: