Class ARPlaneMeshVisualizer
Generates a mesh for an ARPlane.
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectOfType<T>()
Object.ToString()
Object.name
Object.hideFlags
Namespace: UnityEngine.XR.ARFoundation
Assembly: Unity.XR.ARFoundation.dll
Syntax
[RequireComponent(typeof(ARPlane))]
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
hideSubsumed
Indicates whether subsumed planes should be rendered. (See subsumedBy.)
Declaration
public bool hideSubsumed { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
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
.
mesh
Get the Mesh that this visualizer creates and manages.
Declaration
public Mesh mesh { get; }
Property Value
Type | Description |
---|---|
Mesh |
trackingStateVisibilityThreshold
The threshold TrackingState that affects the visibility of the MeshRenderer and LineRenderer components.
Declaration
public TrackingState trackingStateVisibilityThreshold { get; set; }
Property Value
Type | Description |
---|---|
TrackingState |
Remarks
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
.