Class OpenXRFeatureSetManager | OpenXR Plugin | 0.1.2-preview.2
docs.unity3d.com
    Show / Hide Table of Contents

    Class OpenXRFeatureSetManager

    API for finding and managing feature sets for OpenXR.

    Inheritance
    Object
    OpenXRFeatureSetManager
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.XR.OpenXR.Features
    Syntax
    [InitializeOnLoad]
    public static class OpenXRFeatureSetManager

    Methods

    FeatureSetsForBuildTarget(BuildTargetGroup)

    Returns the list of all OpenXRFeatureSetManager.FeatureSet for the given build target group.

    Declaration
    public static List<OpenXRFeatureSetManager.FeatureSet> FeatureSetsForBuildTarget(BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    The build target group to find the feature sets for.

    Returns
    Type Description
    List<OpenXRFeatureSetManager.FeatureSet>

    List of OpenXRFeatureSetManager.FeatureSet or null if there is nothing that matches the given input.

    GetFeatureSetWithId(BuildTargetGroup, String)

    Returns a specific OpenXRFeatureSetManager.FeatureSet instance that matches the input.

    Declaration
    public static OpenXRFeatureSetManager.FeatureSet GetFeatureSetWithId(BuildTargetGroup buildTargetGroup, string featureSetId)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    The build target group this feature set supports.

    String featureSetId

    The feature set id for the specific feature set being requested.

    Returns
    Type Description
    OpenXRFeatureSetManager.FeatureSet

    The matching OpenXRFeatureSetManager.FeatureSet or null.

    InitializeFeatureSets()

    Initializes all currently known feature sets. This will do two initialization passes:

    1) Starts with all built in/known feature sets. 2) Queries the system for anything with an OpenXRFeatureSetAttribute defined on it and uses that to add/update the store of known feature sets.

    Declaration
    public static void InitializeFeatureSets()

    SetFeaturesFromEnabledFeatureSets(BuildTargetGroup)

    Given the current enabled state of the feature sets that match for a build target group, enable and disable the features associated with each feature set. Features that overlap sets of varying enabled states will maintain their enabled setting.

    Declaration
    public static void SetFeaturesFromEnabledFeatureSets(BuildTargetGroup buildTargetGroup)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    The build target group to process features sets for.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023