Class ARPlaneManager
A manager for ARPlanes. Creates, updates, and removes
GameObject
s in response to detected surfaces in the physical
environment.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.ARFoundation
Assembly: solution.dll
Syntax
[DefaultExecutionOrder(-2147483647)]
[DisallowMultipleComponent]
[RequireComponent(typeof(ARSessionOrigin))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARPlaneManager.html")]
public sealed class ARPlaneManager : ARTrackableManager<XRPlaneSubsystem, XRPlaneSubsystemDescriptor, XRPlaneSubsystem.Provider, BoundedPlane, ARPlane>
Properties
Name | Description |
---|---|
currentDetectionMode | Get the current plane detection mode in use by the subsystem. |
detectionMode | Get or set the |
gameObjectName | The name to be used for the |
planePrefab | Getter or setter for the Plane Prefab. |
requestedDetectionMode | Get or set the requested plane detection mode. |
Methods
Name | Description |
---|---|
GetPlane(TrackableId) | Attempt to retrieve an existing ARPlane by |
GetPrefab() | Get the Prefab which will be instantiated for each ARPlane. Can be |
OnAfterSetSessionRelativeData(ARPlane, BoundedPlane) | Invoked just after each ARPlane is updated. |
OnBeforeStart() | Invoked just before |
OnDisable() | Invoked when Unity disables this |
OnEnable() | Invoked when Unity enables this |
OnTrackablesChanged(List<ARPlane>, List<ARPlane>, List<ARPlane>) | Invoked when the base class detects trackable changes. |
Raycast(Ray, TrackableType, Allocator) | Performs a raycast against all currently tracked planes. |
Events
Name | Description |
---|---|
planesChanged | Invoked when planes have changed (been added, updated, or removed). |