docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class FeatureHelpers

    Editor OpenXR Feature helpers.

    Inheritance
    object
    FeatureHelpers
    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 static class FeatureHelpers

    Methods

    GetFeatureWithIdForActiveBuildTarget(string)

    Given a feature id, returns the first instance of OpenXRFeature associated with that id.

    Declaration
    public static OpenXRFeature GetFeatureWithIdForActiveBuildTarget(string featureId)
    Parameters
    Type Name Description
    string featureId

    The unique id identifying the feature

    Returns
    Type Description
    OpenXRFeature

    The instance of the feature matching thd id, or null.

    GetFeatureWithIdForBuildTarget(BuildTargetGroup, string)

    Given a feature id, returns the first OpenXRFeature associated with that id.

    Declaration
    public static OpenXRFeature GetFeatureWithIdForBuildTarget(BuildTargetGroup buildTargetGroup, string featureId)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    The build target group to get the feature from.

    string featureId

    The unique id identifying the feature

    Returns
    Type Description
    OpenXRFeature

    The instance of the feature matching thd id, or null.

    GetFeaturesWithIdsForActiveBuildTarget(string[])

    Given an array of feature ids, returns an array of matching OpenXRFeature instances.

    Declaration
    public static OpenXRFeature[] GetFeaturesWithIdsForActiveBuildTarget(string[] featureIds)
    Parameters
    Type Name Description
    string[] featureIds

    Array of feature ids to match against.

    Returns
    Type Description
    OpenXRFeature[]

    An array of all matching features.

    GetFeaturesWithIdsForBuildTarget(BuildTargetGroup, string[])

    Given an array of feature ids, returns an array of matching OpenXRFeature instances that match.

    Declaration
    public static OpenXRFeature[] GetFeaturesWithIdsForBuildTarget(BuildTargetGroup buildTargetGroup, string[] featureIds)
    Parameters
    Type Name Description
    BuildTargetGroup buildTargetGroup

    The build target group to get the feature from.

    string[] featureIds

    Array of feature ids to match against.

    Returns
    Type Description
    OpenXRFeature[]

    An array of all matching features.

    RefreshFeatures(BuildTargetGroup)

    Discovers all features in project and ensures that OpenXRSettings.Instance.features is up to date for selected build target group.

    Declaration
    public static void RefreshFeatures(BuildTargetGroup group)
    Parameters
    Type Name Description
    BuildTargetGroup group

    build target group to refresh

    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)