Edit

Share via


SurfaceMeshesToPlanes Class

Definition

SurfaceMeshesToPlanes will find and create planes based on the meshes by a spatial awareness mesh observer.

public ref class SurfaceMeshesToPlanes : UnityEngine::MonoBehaviour
public class SurfaceMeshesToPlanes : UnityEngine.MonoBehaviour
type SurfaceMeshesToPlanes = class
    inherit MonoBehaviour
Public Class SurfaceMeshesToPlanes
Inherits MonoBehaviour
Inheritance
UnityEngine.MonoBehaviour
SurfaceMeshesToPlanes

Constructors

SurfaceMeshesToPlanes()

Properties

CanCreatePlanes

Indicates whether or not the project contains the required components for SurfaceMeshesToPlanes to enable plane creation.

CeilingBuffer

Buffer to use when determining if a horizontal plane near the ceiling should be considered part of the ceiling.

DefaultMaterial

Material used to render planes

DestroyPlanesMask

Determines which plane types should be discarded. Use this when the spatial mapping mesh is a better fit for the surface (ex: round tables).

DrawPlanesMask

Determines which plane types should be rendered

FloorBuffer

Buffer to use when determining if a horizontal plane near the floor should be considered part of the floor.

MinArea

Minimum area required for a plane to be created.

PhysicsLayer

The physics layer for planes to be set to

PlanesParent

Empty game object used to contain all planes created by the SurfaceToPlanes class

PlaneThickness

Thickness of rendered plane objects

UpNormalThreshold

Threshold for acceptable normals (the closer to 1, the stricter the standard). Used when determining plane type.

Methods

GetActivePlanes(SpatialAwarenessSurfaceTypes)

Gets all active planes of the specified type(s).

MakePlanes()

Runs background task to create new planes based on data from mesh observers

Applies to