Falco Engine 3.9.0.1 (beta)
FalcoEngine.PlayerPrefs Class Reference

Public Member Functions

static int GetInt (string key, int defaultValue)
 
static float GetFloat (string key, float defaultValue)
 
static string GetString (string key, string defaultValue)
 
static bool HasKey (string key)
 
static void DeleteKey (string key)
 
static void DeleteAll ()
 
static void Save ()
 

Static Public Member Functions

static void SetInt (string key, int value)
 
static int GetInt (string key)
 
static void SetFloat (string key, float value)
 
static float GetFloat (string key)
 
static void SetString (string key, string value)
 
static string GetString (string key)
 

Detailed Description

Definition at line 7 of file PlayerPrefs.cs.

Member Function Documentation

◆ DeleteAll()

static void FalcoEngine.PlayerPrefs.DeleteAll ( )

Removes all keys and values from the preferences. Use with caution.

◆ DeleteKey()

static void FalcoEngine.PlayerPrefs.DeleteKey ( string  key)

Removes key and its corresponding value from the preferences.

Parameters
key

◆ GetFloat() [1/2]

static float FalcoEngine.PlayerPrefs.GetFloat ( string  key)
static

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

Definition at line 75 of file PlayerPrefs.cs.

◆ GetFloat() [2/2]

static float FalcoEngine.PlayerPrefs.GetFloat ( string  key,
float  defaultValue 
)

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

◆ GetInt() [1/2]

static int FalcoEngine.PlayerPrefs.GetInt ( string  key)
static

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

Definition at line 44 of file PlayerPrefs.cs.

◆ GetInt() [2/2]

static int FalcoEngine.PlayerPrefs.GetInt ( string  key,
int  defaultValue 
)

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

◆ GetString() [1/2]

static string FalcoEngine.PlayerPrefs.GetString ( string  key)
static

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

Definition at line 106 of file PlayerPrefs.cs.

◆ GetString() [2/2]

static string FalcoEngine.PlayerPrefs.GetString ( string  key,
string  defaultValue 
)

Returns the value corresponding to key in the preference file if it exists.

Parameters
key
defaultValue

◆ HasKey()

static bool FalcoEngine.PlayerPrefs.HasKey ( string  key)

Returns true if key exists in the preferences.

Parameters
key

◆ Save()

static void FalcoEngine.PlayerPrefs.Save ( )

Writes all modified preferences to disk.

◆ SetFloat()

static void FalcoEngine.PlayerPrefs.SetFloat ( string  key,
float  value 
)
static

Sets the value of the preference identified by key.

Parameters
key
value

Definition at line 54 of file PlayerPrefs.cs.

◆ SetInt()

static void FalcoEngine.PlayerPrefs.SetInt ( string  key,
int  value 
)
static

Sets the value of the preference identified by key.

Parameters
key
value

Definition at line 23 of file PlayerPrefs.cs.

◆ SetString()

static void FalcoEngine.PlayerPrefs.SetString ( string  key,
string  value 
)
static

Sets the value of the preference identified by key.

Parameters
key
value

Definition at line 85 of file PlayerPrefs.cs.


The documentation for this class was generated from the following file: