Class DemoSpatialMeshHandler
This class is an example of the IMixedRealitySpatialAwarenessObservationHandler<T> interface. It keeps track of the IDs of each mesh and tracks the number of updates they have received.
Implements
IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessMeshObject>
Namespace: Microsoft.MixedReality.Toolkit.Examples.Demos
Assembly: cs.temp.dll.dll
Syntax
public class DemoSpatialMeshHandler : MonoBehaviour, IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessMeshObject>
Methods
OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)
Declaration
public virtual void OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> | eventData |
OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)
Declaration
public virtual void OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> | eventData |
OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject>)
Declaration
public virtual void OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
Type | Name | Description |
---|---|---|
MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> | eventData |
Implements
IMixedRealitySpatialAwarenessObservationHandler<>