◆ GenNewPrefOptionBaseUsingXMLForTooltip< PrefInterfaceType >()

static PrefOptionBase<ValueType,PrefInterfaceType> GenNewPrefOptionBaseUsingXMLForTooltip< PrefInterfaceType > ( ValueType  defaultValue,
string  fieldName,
System.Type  containingClass,
bool  alwaysLoadSaveOnAccess = true 
)
static
Template Parameters
PrefInterfaceTypethe type of IStorePreferences interface to use for this preference
Parameters
defaultValuedefault value to be assigned to the PrefOptionBase, if it has not been created yet, or has been deleted.
fieldNamethe field name, exactly as it appears in code. Case sensitive, may reference private members.
containingClassThe type that contains the field
alwaysLoadSaveOnAccesstrue by default, specifies if the data will be loaded and saved automatically. When false Load Save will need to be done manually.
Returns
A new PrefOptionBase that can persistently store a value of type T. The tool-tip of this PrefOptionBase's GUIContent, will be populated with the summary documentation for this member, as found in the embedded XML file. It's label will be populated with the label xml attribute in the documentation xml.
Type Constraints
PrefInterfaceType :IStorePreferences 
PrefInterfaceType :new()