Class SpatialAwarenessMeshObject
Object encapsulating the components of a spatial awareness mesh object.
Implements
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
public class SpatialAwarenessMeshObject : BaseSpatialAwarenessObject, IMixedRealitySpatialAwarenessObject
Properties
Collider
The collider for the mesh object.
Declaration
public MeshCollider Collider { get; set; }
Property Value
Type | Description |
---|---|
Mesh |
Methods
Cleanup(SpatialAwarenessMeshObject, Boolean, Boolean)
Clean up the resources associated with the surface.
Declaration
public static void Cleanup(SpatialAwarenessMeshObject meshObject, bool destroyGameObject = true, bool destroyMeshes = true)
Parameters
Type | Name | Description |
---|---|---|
Spatial |
meshObject | The Spatial |
Boolean | destroyGameObject | |
Boolean | destroyMeshes |
Create(Mesh, Int32, String, Int32, GameObject)
Creates a Spatial
Declaration
public static SpatialAwarenessMeshObject Create(Mesh mesh, int layer, string name, int meshId, GameObject meshParent = null)
Parameters
Returns
Type | Description |
---|---|
Spatial |
SpatialMeshObject containing the fields that describe the mesh. |