Table of Contents

Class UnityPrefs

Namespace
Coherence.Prefs
Assembly
Coherence.Prefs.dll
public class UnityPrefs : IPrefsImplementation
Inheritance
UnityPrefs
Implements

Constructors

UnityPrefs()

public UnityPrefs()

Methods

DeleteAll()

public void DeleteAll()

DeleteKey(string)

public void DeleteKey(string key)

Parameters

key string

GetFloat(string)

public float GetFloat(string key)

Parameters

key string

Returns

float

GetFloat(string, float)

public float GetFloat(string key, float defaultValue)

Parameters

key string
defaultValue float

Returns

float

GetInt(string)

public int GetInt(string key)

Parameters

key string

Returns

int

GetInt(string, int)

public int GetInt(string key, int defaultValue)

Parameters

key string
defaultValue int

Returns

int

GetString(string)

public string GetString(string key)

Parameters

key string

Returns

string

GetString(string, string)

public string GetString(string key, string defaultValue)

Parameters

key string
defaultValue string

Returns

string

HasKey(string)

public bool HasKey(string key)

Parameters

key string

Returns

bool

Save()

public void Save()

SetFloat(string, float)

public void SetFloat(string key, float value)

Parameters

key string
value float

SetInt(string, int)

public void SetInt(string key, int value)

Parameters

key string
value int

SetString(string, string)

public void SetString(string key, string value)

Parameters

key string
value string