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 |
|---|---|
| MeshCollider |
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 |
|---|---|---|
| SpatialAwarenessMeshObject | meshObject | The SpatialAwarenessMeshObject whose resources will be cleaned up. |
| Boolean | destroyGameObject | |
| Boolean | destroyMeshes |
Create(Mesh, Int32, String, Int32, GameObject)
Creates a SpatialAwarenessMeshObject.
Declaration
public static SpatialAwarenessMeshObject Create(Mesh mesh, int layer, string name, int meshId, GameObject meshParent = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Mesh | mesh | |
| Int32 | layer | |
| String | name | |
| Int32 | meshId | |
| GameObject | meshParent |
Returns
| Type | Description |
|---|---|
| SpatialAwarenessMeshObject | SpatialMeshObject containing the fields that describe the mesh. |