Class OpenXRSettings
Build time settings for OpenXR. These are serialized and available at runtime.
Inherited Members
Namespace: UnityEngine.XR.OpenXR
Assembly: solution.dll
Syntax
[Serializable]
public class OpenXRSettings : ScriptableObject
Properties
| Name | Description |
|---|---|
| ActiveBuildTargetInstance | Accessor to OpenXR build time settings. In the Unity Editor, this returns the settings for the active build target group. |
| AllowRecentering | Returns the current state of the recentering feature. |
| FloorOffset | Returns the current floor offset value used when approximating the floor-based position when recentering the space. |
| Instance | Accessor to OpenXR build time settings. In the Unity Editor, this returns the settings for the Standalone build target group. |
| depthSubmissionMode | Enables XR_KHR_composition_layer_depth if possible and resolves or submits depth to OpenXR runtime. |
| featureCount | Number of available features. |
| renderMode | Runtime Stereo rendering mode. |
| symmetricProjection | If enabled, when the application begins it will create a stereo symmetric view that has the eye buffer resolution change based on the IPD. Provides a performance benefit across all IPDs. |
Methods
| Name | Description |
|---|---|
| GetFeature(Type) | Returns the first feature that matches the given type. |
| GetFeature<TFeature>() | Returns the first feature that matches the given type. |
| GetFeatures() | Return all features. |
| GetFeatures(List<OpenXRFeature>) | Return all features. |
| GetFeatures(Type) | Returns all features of Type. |
| GetFeatures(Type, List<OpenXRFeature>) | Returns all features of a given type. |
| GetFeatures<TFeature>() | Returns all features of a given type. |
| GetFeatures<TFeature>(List<TFeature>) | Returns all features of a given type. |
| SetAllowRecentering(bool, float) | Activates reference space recentering when using floor-based tracking origin. |