ProjectPreferences.Get Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Get(String, Boolean) |
Get bool from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, Int32) |
Get int from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, Single) |
Get float from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get(String, String) |
Get string from Project Preferences. If no entry found, then create new entry with provided defaultValue |
Get bool from Project Preferences. If no entry found, then create new entry with provided defaultValue
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
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Get int from Project Preferences. If no entry found, then create new entry with provided defaultValue
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
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Get float from Project Preferences. If no entry found, then create new entry with provided defaultValue
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
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
Get string from Project Preferences. If no entry found, then create new entry with provided defaultValue
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
MRTK2 Unity 2018 2.7.0 a ďalšie verzie
Produkt | Verzie |
---|---|
MRTK2 Unity 2018 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0 |
MRTK2 Unity 2019 | 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |
MRTK2 Unity 2020 | 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0 |