◆ GenNewXmlPrefOptionUsingXMLForTooltip()

static XmlPrefOption<ValueType> GenNewXmlPrefOptionUsingXMLForTooltip ( ValueType  defaultValue,
string  fieldName,
System.Type  containingClass,
bool  alwaysLoadSaveOnAccess = true 
)
static
Parameters
defaultValuedefault value to be assigned to the EditorPrefOption, 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 XmlPrefOption that can persistently store a value of type T. The tool-tip of this XmlPrefOption's GUIContent, will be populated with the documentation for this member, as found in the embedded XML file.