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 |
---|---|
current |
Get the current plane detection mode in use by the subsystem. |
detection |
Get or set the |
game |
The name to be used for the |
plane |
Getter or setter for the Plane Prefab. |
requested |
Get or set the requested plane detection mode. |
Methods
Name | Description |
---|---|
Get |
Attempt to retrieve an existing ARPlane by |
Get |
Get the Prefab which will be instantiated for each ARPlane. Can be |
On |
Invoked just after each ARPlane is updated. |
On |
Invoked just before |
On |
Invoked when Unity disables this |
On |
Invoked when Unity enables this |
On |
Invoked when the base class detects trackable changes. |
Raycast(Ray, Trackable |
Performs a raycast against all currently tracked planes. |
Events
Name | Description |
---|---|
planes |
Invoked when planes have changed (been added, updated, or removed). |