Class ARPlaneMeshVisualizer
Generates a mesh for an ARPlane.
Inherited Members
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.ARFoundation
Assembly: solution.dll
Syntax
[RequireComponent(typeof(ARPlane))]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@4.2/api/UnityEngine.XR.ARFoundation.ARPlaneMeshVisualizer.html")]
public sealed class ARPlaneMeshVisualizer : MonoBehaviour
Remarks
If this component's GameObject has a MeshFilter and/or a MeshCollider, this component will generate a mesh from the BoundedPlane associated with the ARPlane.
It will also update a LineRenderer with the boundary points, if present.
MeshRenderer and LineRenderer components will only be enabled if:
- This component is enabled.
- The plane's trackingState is greater than or equal to trackingStateVisibilityThreshold.
- The ARSession's state is greater than Ready.
- hideSubsumed is
false
OR subsumedBy is notnull
.
Properties
Name | Description |
---|---|
hideSubsumed | Indicates whether subsumed planes should be rendered. (See subsumedBy.) |
mesh | Get the Mesh that this visualizer creates and manages. |
trackingStateVisibilityThreshold | The threshold TrackingState that affects the visibility of the MeshRenderer and LineRenderer components. |