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

    Class FeatureHelpers

    Editor OpenXR Feature helpers.

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

    Methods

    GetFeaturesWithIdsForActiveBuildTarget(String[])

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

    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.

    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.

    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

    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