Class ARPlaneMeshVisualizer
Generates a mesh for an ARPlane.
Inherited Members
Namespace: UnityEngine .XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
[RequireComponent(typeof(ARPlane))]
public sealed class ARPlaneMeshVisualizer : MonoBehaviour
Remarks
If this component's Game
It will also update a Line
Mesh
- This component is enabled.
- The plane's tracking
State is greater than or equal to trackingState .Visibility Threshold - The ARSession's state is greater than Ready.
- hide
Subsumed isfalse
OR subsumedBy is notnull
.
Properties
hideSubsumed
Indicates whether subsumed planes should be rendered. (See subsumed
Declaration
public bool hideSubsumed { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
Mesh
- This component is enabled.
- The plane's tracking
State is greater than or equal to trackingState .Visibility Threshold - The ARSession's state is greater than Ready.
- hide
Subsumed isfalse
OR subsumedBy is notnull
.
mesh
Get the Mesh that this visualizer creates and manages.
Declaration
public Mesh mesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
trackingStateVisibilityThreshold
The threshold Tracking
Declaration
public TrackingState trackingStateVisibilityThreshold { get; set; }
Property Value
Type | Description |
---|---|
Tracking |
Remarks
Mesh
- This component is enabled.
- The plane's tracking
State is greater than or equal to trackingState .Visibility Threshold - The ARSession's state is greater than Ready.
- hide
Subsumed isfalse
OR subsumedBy is notnull
.