Table of Contents

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

scope string

The scope namespace.

key string

The key within the scope.

defaultValue float

The value to return if the key does not exist.

Returns

float

The stored value, or defaultValue if not found.