C# Class LeopotamGroup.EditorHelpers.ProjectPrefs

EditorPrefs replacement with keeping data per project.
Datei anzeigen Open project: Leopotam/LeopotamGroupLibraryUnity

Public Methods

Method Description
DeleteAll ( ) : void

Delete all keys.

DeleteKey ( string key ) : void

Delete key.

GetBool ( string key, bool defaultValue = false ) : bool

Get bool value by key.

GetFloat ( string key, float defaultValue = 0f ) : float

Get float value by key.

GetInt ( string key, int defaultValue ) : int

Get int value by key.

GetString ( string key, string defaultValue = null ) : string

Get string value by key.

HasKey ( string key ) : bool

Is key-store contains specified key.

Reset ( ) : void

Force reload data.

SetBool ( string key, bool data ) : void

Set bool value by key.

SetFloat ( string key, float data ) : void

Set float value by key.

SetInt ( string key, int data ) : void

Set int value by key.

SetString ( string key, string data ) : void

Set string value by key.

Private Methods

Method Description
LoadData ( ) : void
SaveData ( ) : void

Method Details

DeleteAll() public static method

Delete all keys.
public static DeleteAll ( ) : void
return void

DeleteKey() public static method

Delete key.
public static DeleteKey ( string key ) : void
key string Key.
return void

GetBool() public static method

Get bool value by key.
public static GetBool ( string key, bool defaultValue = false ) : bool
key string Key.
defaultValue bool Default value.
return bool

GetFloat() public static method

Get float value by key.
public static GetFloat ( string key, float defaultValue = 0f ) : float
key string Key.
defaultValue float Default value.
return float

GetInt() public static method

Get int value by key.
public static GetInt ( string key, int defaultValue ) : int
key string Key.
defaultValue int Default value.
return int

GetString() public static method

Get string value by key.
public static GetString ( string key, string defaultValue = null ) : string
key string Key.
defaultValue string Default value.
return string

HasKey() public static method

Is key-store contains specified key.
public static HasKey ( string key ) : bool
key string Key.
return bool

Reset() public static method

Force reload data.
public static Reset ( ) : void
return void

SetBool() public static method

Set bool value by key.
public static SetBool ( string key, bool data ) : void
key string Key.
data bool Data.
return void

SetFloat() public static method

Set float value by key.
public static SetFloat ( string key, float data ) : void
key string Key.
data float Data.
return void

SetInt() public static method

Set int value by key.
public static SetInt ( string key, int data ) : void
key string Key.
data int Data.
return void

SetString() public static method

Set string value by key.
public static SetString ( string key, string data ) : void
key string Key.
data string Data.
return void