docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BootConfigBuilder

    The Boot Config builder exposes a centralized call-site for populating BootConfig options.

    Inheritance
    object
    BootConfigBuilder
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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
    Type Name Description
    string key

    Key of the value to be stored

    bool value

    Boolean value to set

    Returns
    Type Description
    bool

    If the key existing in the boot config and it's "1", return true. Otherwise return false.

    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

    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)