Class FeatureHelpers
Editor OpenXR Feature helpers.
Inherited Members
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 Open
Declaration
public static OpenXRFeature GetFeatureWithIdForActiveBuildTarget(string featureId)
Parameters
Type | Name | Description |
---|---|---|
string | featureId | The unique id identifying the feature |
Returns
Type | Description |
---|---|
Open |
The instance of the feature matching thd id, or null. |
GetFeatureWithIdForBuildTarget(BuildTargetGroup, string)
Given a feature id, returns the first Open
Declaration
public static OpenXRFeature GetFeatureWithIdForBuildTarget(BuildTargetGroup buildTargetGroup, string featureId)
Parameters
Type | Name | Description |
---|---|---|
Build |
buildTargetGroup | The build target group to get the feature from. |
string | featureId | The unique id identifying the feature |
Returns
Type | Description |
---|---|
Open |
The instance of the feature matching thd id, or null. |
GetFeaturesWithIdsForActiveBuildTarget(string[])
Given an array of feature ids, returns an array of matching Open
Declaration
public static OpenXRFeature[] GetFeaturesWithIdsForActiveBuildTarget(string[] featureIds)
Parameters
Type | Name | Description |
---|---|---|
string[] | featureIds | Array of feature ids to match against. |
Returns
Type | Description |
---|---|
Open |
An array of all matching features. |
GetFeaturesWithIdsForBuildTarget(BuildTargetGroup, string[])
Given an array of feature ids, returns an array of matching Open
Declaration
public static OpenXRFeature[] GetFeaturesWithIdsForBuildTarget(BuildTargetGroup buildTargetGroup, string[] featureIds)
Parameters
Type | Name | Description |
---|---|---|
Build |
buildTargetGroup | The build target group to get the feature from. |
string[] | featureIds | Array of feature ids to match against. |
Returns
Type | Description |
---|---|
Open |
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 |
---|---|---|
Build |
group | build target group to refresh |