편집

다음을 통해 공유


EditorPreferences.Get Method

Definition

Overloads

Get(String, Boolean)

Get the saved Boolean from the EditorPrefs.

Get(String, Int32)

Get the saved Int32 from the EditorPrefs.

Get(String, Single)

Get the saved Single from the EditorPrefs.

Get(String, String)

Get the saved String from theEditorPrefs.

Get(String, Boolean)

Get the saved Boolean from the EditorPrefs.

public:
 static bool Get(System::String ^ key, bool defaultValue);
public static bool Get (string key, bool defaultValue);
static member Get : string * bool -> bool
Public Shared Function Get (key As String, defaultValue As Boolean) As Boolean

Parameters

key
String
defaultValue
Boolean

Returns

Applies to

Get(String, Int32)

Get the saved Int32 from the EditorPrefs.

public:
 static int Get(System::String ^ key, int defaultValue);
public static int Get (string key, int defaultValue);
static member Get : string * int -> int
Public Shared Function Get (key As String, defaultValue As Integer) As Integer

Parameters

key
String
defaultValue
Int32

Returns

Applies to

Get(String, Single)

Get the saved Single from the EditorPrefs.

public:
 static float Get(System::String ^ key, float defaultValue);
public static float Get (string key, float defaultValue);
static member Get : string * single -> single
Public Shared Function Get (key As String, defaultValue As Single) As Single

Parameters

key
String
defaultValue
Single

Returns

Applies to

Get(String, String)

Get the saved String from theEditorPrefs.

public:
 static System::String ^ Get(System::String ^ key, System::String ^ defaultValue);
public static string Get (string key, string defaultValue);
static member Get : string * string -> string
Public Shared Function Get (key As String, defaultValue As String) As String

Parameters

key
String
defaultValue
String

Returns

Applies to