Class MixedRealitySpatialAwarenessEventData<T>
Data for spatial awareness events.
Inheritance
MixedRealitySpatialAwarenessEventData<T>
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
public class MixedRealitySpatialAwarenessEventData<T> : MixedRealitySpatialAwarenessEventData
Type Parameters
| Name | Description |
|---|---|
| T | The spatial object data type. |
Constructors
MixedRealitySpatialAwarenessEventData(EventSystem)
Constructor.
Declaration
public MixedRealitySpatialAwarenessEventData(EventSystem eventSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| EventSystem | eventSystem |
Properties
SpatialObject
The spatial object to which this event pertains.
Declaration
public T SpatialObject { get; }
Property Value
| Type | Description |
|---|---|
| T |
Methods
Initialize(IMixedRealitySpatialAwarenessObserver, Int32, T)
Initialize the event data.
Declaration
public void Initialize(IMixedRealitySpatialAwarenessObserver observer, int id, T spatialObject)
Parameters
| Type | Name | Description |
|---|---|---|
| IMixedRealitySpatialAwarenessObserver | observer | The IMixedRealitySpatialAwarenessObserver that raised the event. |
| Int32 | id | The identifier of the observed spatial object. |
| T | spatialObject | The observed spatial object. |