Class DemoSpatialMeshHandler
Inheritance
DemoSpatialMeshHandler
Implements
IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessMeshObject>
Assembly: cs.temp.dll.dll
public class DemoSpatialMeshHandler : MonoBehaviour, IMixedRealitySpatialAwarenessObservationHandler<SpatialAwarenessMeshObject>
Fields
Value indicating whether or not this script has registered for spatial awareness events.
Declaration
protected bool isRegistered
Field Value
Methods
Records the mesh id when it is first added.
Declaration
protected void AddToData(int eventDataId)
Parameters
| Type |
Name |
Description |
| Int32 |
eventDataId |
|
Declaration
protected virtual void OnDestroy()
Declaration
protected virtual void OnDisable()
Declaration
protected virtual void OnEnable()
Declaration
public virtual void OnObservationAdded(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
| Type |
Name |
Description |
| MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> |
eventData |
|
Declaration
public virtual void OnObservationRemoved(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
| Type |
Name |
Description |
| MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> |
eventData |
|
Declaration
public virtual void OnObservationUpdated(MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> eventData)
Parameters
| Type |
Name |
Description |
| MixedRealitySpatialAwarenessEventData<SpatialAwarenessMeshObject> |
eventData |
|
Registers for the spatial awareness system events.
Declaration
protected virtual void RegisterEventHandlers<T, U>()
where T : IMixedRealitySpatialAwarenessObservationHandler<U> where U : BaseSpatialAwarenessObject
Type Parameters
Declaration
protected void RemoveFromData(int eventDataId)
Parameters
| Type |
Name |
Description |
| Int32 |
eventDataId |
|
Declaration
protected virtual void Start()
Unregisters from the spatial awareness system events.
Declaration
protected virtual void UnregisterEventHandlers<T, U>()
where T : IMixedRealitySpatialAwarenessObservationHandler<U> where U : BaseSpatialAwarenessObject
Type Parameters
Increments the update count of the mesh with the id.
Declaration
protected void UpdateData(int eventDataId)
Parameters
| Type |
Name |
Description |
| Int32 |
eventDataId |
|
Implements
IMixedRealitySpatialAwarenessObservationHandler<>