IModPersistentDataLoadFloat Method |
Attempts to load a floating point value from the persistent store.
Namespace:
UMod
Assembly:
UMod-Interface (in UMod-Interface.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax float LoadFloat(
string key,
float errorValue = 0f
)
Parameters
- key
- Type: SystemString
The key identifier as given when the data was saved - errorValue (Optional)
- Type: SystemSingle
The value to return if the specified key does not exist
Return Value
Type:
SingleA loaded floating point value or the specified error value if the key was not found
See Also