Class BootConfigBuilder
The Boot Config builder exposes a centralized call-site for populating BootConfig options.
Inherited Members
Namespace: UnityEditor .XR.OpenXR .Features
Assembly: Unity.XR.OpenXR.Editor.dll
Syntax
public class BootConfigBuilder
Methods
SetBootConfigBoolean(string, bool)
Method for setting a specific BOOLEAN config option. This method ensures a consistent method for writing a boolean value
Declaration
public bool SetBootConfigBoolean(string key, bool value)
Parameters
Returns
Type | Description |
---|---|
bool | If the |
SetBootConfigValue(string, string)
Method for setting a specific boot config option, given the key and the string value to store.
Declaration
public bool SetBootConfigValue(string key, string value)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key of the value to be stored |
string | value | String value to write to the key |
Returns
Type | Description |
---|---|
bool | True if we are able to set the config value, otherwise returns false |
TryGetBootConfigBoolean(string, out bool)
Return a boolean based on the value stored at key
Declaration
public bool TryGetBootConfigBoolean(string key, out bool value)
Parameters
Type | Name | Description |
---|---|---|
string | key | key to look for in the boot config |
bool | value | Where we store the result. |
Returns
Type | Description |
---|---|
bool | true if we find the key in the bootconfig, otherwise we return false |
TryGetBootConfigValue(string, out string)
Get a config value from the boot config, given a specific key.
Declaration
public bool TryGetBootConfigValue(string key, out string value)
Parameters
Type | Name | Description |
---|---|---|
string | key | Key we want to locate in the boot config |
string | value | Where we store the result. |
Returns
Type | Description |
---|---|
bool | true if we find the key in the bootconfig, otherwise we return false |
TryRemoveBootConfigEntry(string)
Try and remove an entry from the boot config.
Declaration
public bool TryRemoveBootConfigEntry(string key)
Parameters
Type | Name | Description |
---|---|---|
string | key | The key to attempt to remove |
Returns
Type | Description |
---|---|
bool | true if we were able to remove the boot config entry, otherwise false |