Crosstales.Common.Util.CTPlayerPrefs Class Reference

Wrapper for the PlayerPrefs. More...

Static Public Member Functions

static bool HasKey (string key)
 Exists the key? More...
 
static void DeleteAll ()
 Deletes all keys. More...
 
static void DeleteKey (string key)
 Delete the key. More...
 
static void Save ()
 Saves all modifications. More...
 
static string GetString (string key)
 Allows to get a string from a key. More...
 
static float GetFloat (string key)
 Allows to get a float from a key. More...
 
static int GetInt (string key)
 Allows to get an int from a key. More...
 
static bool GetBool (string key)
 Allows to get a bool from a key. More...
 
static System.DateTime GetDate (string key)
 Allows to get a DateTime from a key. More...
 
static Vector2 GetVector2 (string key)
 Allows to get a Vector2 from a key. More...
 
static Vector3 GetVector3 (string key)
 Allows to get a Vector3 from a key. More...
 
static Vector4 GetVector4 (string key)
 Allows to get a Vector4 from a key. More...
 
static Quaternion GetQuaternion (string key)
 Allows to get a Quaternion from a key. More...
 
static Color GetColor (string key)
 Allows to get a Color from a key. More...
 
static SystemLanguage GetLanguage (string key)
 Allows to get a SystemLanguage from a key. More...
 
static void SetString (string key, string value)
 Allows to set a string for a key. More...
 
static void SetFloat (string key, float value)
 Allows to set a float for a key. More...
 
static void SetInt (string key, int value)
 Allows to set an int for a key. More...
 
static void SetBool (string key, bool value)
 Allows to set a bool for a key. More...
 
static void SetDate (string key, System.DateTime value)
 Allows to set a DateTime for a key. More...
 
static void SetVector2 (string key, Vector2 value)
 Allows to set a Vector2 for a key. More...
 
static void SetVector3 (string key, Vector3 value)
 Allows to set a Vector3 for a key. More...
 
static void SetVector4 (string key, Vector4 value)
 Allows to set a Vector4 for a key. More...
 
static void SetQuaternion (string key, Quaternion value)
 Allows to set a Quaternion for a key. More...
 
static void SetColor (string key, Color value)
 Allows to set a Color for a key. More...
 
static void SetLanguage (string key, SystemLanguage language)
 Allows to set a SystemLanguage for a key. More...
 

Detailed Description

Wrapper for the PlayerPrefs.

Member Function Documentation

◆ DeleteAll()

static void Crosstales.Common.Util.CTPlayerPrefs.DeleteAll ( )
static

Deletes all keys.

◆ DeleteKey()

static void Crosstales.Common.Util.CTPlayerPrefs.DeleteKey ( string  key)
static

Delete the key.

Parameters
keyKey to delete in the PlayerPrefs.

◆ GetBool()

static bool Crosstales.Common.Util.CTPlayerPrefs.GetBool ( string  key)
static

Allows to get a bool from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetColor()

static Color Crosstales.Common.Util.CTPlayerPrefs.GetColor ( string  key)
static

Allows to get a Color from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetDate()

static System.DateTime Crosstales.Common.Util.CTPlayerPrefs.GetDate ( string  key)
static

Allows to get a DateTime from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetFloat()

static float Crosstales.Common.Util.CTPlayerPrefs.GetFloat ( string  key)
static

Allows to get a float from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetInt()

static int Crosstales.Common.Util.CTPlayerPrefs.GetInt ( string  key)
static

Allows to get an int from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetLanguage()

static SystemLanguage Crosstales.Common.Util.CTPlayerPrefs.GetLanguage ( string  key)
static

Allows to get a SystemLanguage from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetQuaternion()

static Quaternion Crosstales.Common.Util.CTPlayerPrefs.GetQuaternion ( string  key)
static

Allows to get a Quaternion from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetString()

static string Crosstales.Common.Util.CTPlayerPrefs.GetString ( string  key)
static

Allows to get a string from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetVector2()

static Vector2 Crosstales.Common.Util.CTPlayerPrefs.GetVector2 ( string  key)
static

Allows to get a Vector2 from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetVector3()

static Vector3 Crosstales.Common.Util.CTPlayerPrefs.GetVector3 ( string  key)
static

Allows to get a Vector3 from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ GetVector4()

static Vector4 Crosstales.Common.Util.CTPlayerPrefs.GetVector4 ( string  key)
static

Allows to get a Vector4 from a key.

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ HasKey()

static bool Crosstales.Common.Util.CTPlayerPrefs.HasKey ( string  key)
static

Exists the key?

Parameters
keyKey for the PlayerPrefs.
Returns
Value for the key.

◆ Save()

static void Crosstales.Common.Util.CTPlayerPrefs.Save ( )
static

Saves all modifications.

◆ SetBool()

static void Crosstales.Common.Util.CTPlayerPrefs.SetBool ( string  key,
bool  value 
)
static

Allows to set a bool for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetColor()

static void Crosstales.Common.Util.CTPlayerPrefs.SetColor ( string  key,
Color  value 
)
static

Allows to set a Color for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetDate()

static void Crosstales.Common.Util.CTPlayerPrefs.SetDate ( string  key,
System.DateTime  value 
)
static

Allows to set a DateTime for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetFloat()

static void Crosstales.Common.Util.CTPlayerPrefs.SetFloat ( string  key,
float  value 
)
static

Allows to set a float for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetInt()

static void Crosstales.Common.Util.CTPlayerPrefs.SetInt ( string  key,
int  value 
)
static

Allows to set an int for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetLanguage()

static void Crosstales.Common.Util.CTPlayerPrefs.SetLanguage ( string  key,
SystemLanguage  language 
)
static

Allows to set a SystemLanguage for a key.

Parameters
keyKey for the PlayerPrefs.
languageValue for the PlayerPrefs.

◆ SetQuaternion()

static void Crosstales.Common.Util.CTPlayerPrefs.SetQuaternion ( string  key,
Quaternion  value 
)
static

Allows to set a Quaternion for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetString()

static void Crosstales.Common.Util.CTPlayerPrefs.SetString ( string  key,
string  value 
)
static

Allows to set a string for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetVector2()

static void Crosstales.Common.Util.CTPlayerPrefs.SetVector2 ( string  key,
Vector2  value 
)
static

Allows to set a Vector2 for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetVector3()

static void Crosstales.Common.Util.CTPlayerPrefs.SetVector3 ( string  key,
Vector3  value 
)
static

Allows to set a Vector3 for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

◆ SetVector4()

static void Crosstales.Common.Util.CTPlayerPrefs.SetVector4 ( string  key,
Vector4  value 
)
static

Allows to set a Vector4 for a key.

Parameters
keyKey for the PlayerPrefs.
valueValue for the PlayerPrefs.

The documentation for this class was generated from the following file:
  • C:/Users/slaub/Unity/assets/RTVoice/RTVoicePro/Assets/Plugins/crosstales/Common/Scripts/Util/CTPlayerPrefs.cs