Class ARPlaneFeature
Enables AR Foundation plane support via OpenXR for Meta Quest devices.
Inherited Members
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate<T>(T, InstantiateParameters)
Object.Instantiate<T>(T, Vector3, Quaternion, InstantiateParameters)
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.OpenXR.Features.Meta
Assembly: Unity.XR.MetaOpenXR.dll
Syntax
[OpenXRFeature(UiName = "Meta Quest: Planes", BuildTargetGroups = new BuildTargetGroup[] { BuildTargetGroup.Android }, Company = "Unity Technologies", Desc = "AR Foundation plane detection support on Meta Quest devices", DocumentationLink = "https://docs.unity3d.com/Packages/com.unity.xr.meta-openxr@2.0/manual/features/plane-detection.html", OpenxrExtensionStrings = "XR_FB_spatial_entity XR_FB_scene XR_META_spatial_entity_discovery", Category = "Feature", FeatureId = "com.unity.openxr.feature.arfoundation-meta-plane", Version = "0.1.0")]
public class ARPlaneFeature : OpenXRFeature
Fields
featureId
The feature id string. This is used to give the feature a well known id for reference.
Declaration
public const string featureId = "com.unity.openxr.feature.arfoundation-meta-plane"
Field Value
Type | Description |
---|---|
string |
Methods
GetValidationChecks(List<ValidationRule>, BuildTargetGroup)
Validation Rules for ARPlaneFeature.
Declaration
protected override void GetValidationChecks(List<OpenXRFeature.ValidationRule> rules, BuildTargetGroup targetGroup)
Parameters
Type | Name | Description |
---|---|---|
List<OpenXRFeature.ValidationRule> | rules | |
BuildTargetGroup | targetGroup |
Overrides
OnSubsystemCreate()
Instantiates Meta OpenXR plane subsystem instance, but does not start it. (Start/Stop is typically handled by AR Foundation managers.)
Declaration
protected override void OnSubsystemCreate()
Overrides
OnSubsystemDestroy()
Destroys the plane subsystem.
Declaration
protected override void OnSubsystemDestroy()