Class ARPlaneMeshVisualizer
Generates a mesh for an ARPlane.
Inheritance
System.Object
ARPlaneMeshVisualizer
Namespace: UnityEngine.XR.ARFoundation
Syntax
public sealed class ARPlaneMeshVisualizer : MonoBehaviour
Remarks
If this GameObject
has a MeshFilter
and/or MeshCollider
,
this component will generate a mesh from the underlying BoundedPlane
.
It will also update a LineRenderer
with the boundary points, if present.
Properties
mesh
Get the Mesh
that this visualizer creates and manages.
Declaration
public Mesh mesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
Events
meshUpdated
Invoked after mesh has been regenerated, but before
any components have been updated to use the new Mesh
.
Declaration
public event Action<ARPlaneMeshVisualizer> meshUpdated
Event Type
Type | Description |
---|---|
Action<ARPlaneMeshVisualizer> |