Method GetFloat
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
GetFloat(string, string, float)
Gets a float preference.
public static float GetFloat(string scope, string key, float defaultValue = 0)
Parameters
scopestringThe scope namespace.
keystringThe key within the scope.
defaultValuefloatThe value to return if the key does not exist.
Returns
- float
The stored value, or
defaultValueif not found.