IAccessPreferences< ValueType > Interface Template Reference

All Preference options, via PrefOptionBase, implement this interface. It is used by the PrefOptionBaseEditorDrawingExtensions functions to draw any type of Preference, regardless of which IStorePreferences interface it uses.

Detailed Description

Template Parameters
ValueTypethe type of the values stored in the preference

Public Member Functions

void Load ()
 Loads the preference from storage- making it available for reach via the Value accessor.
 
void Save ()
 Save the last value written to storage.
 

Properties

bool AlwaysLoadAndSaveOnValueAccess [get]
 specifies weather using the Value accessor will automatically load or save the value to the preference storage.
 
GUIContent Label [get, set]
 Accessor to get and set the label assigned to the preference
 
ValueType Value [get, set]
 Accessor to get and set the value assigned to the preference
 
+ Inheritance diagram for IAccessPreferences< ValueType >: