Class MixedRealitySpatialAwarenessEventData<T>
Data for spatial awareness events.
Inheritance
MixedRealitySpatialAwarenessEventData<T>
Implements
BaseEventData
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.SpatialAwareness
Assembly: cs.temp.dll.dll
Syntax
public class MixedRealitySpatialAwarenessEventData<T> : MixedRealitySpatialAwarenessEventData, BaseEventData
Type Parameters
Name | Description |
---|---|
T | The spatial object data type. |
Constructors
MixedRealitySpatialAwarenessEventData(EventSystem)
Declaration
public MixedRealitySpatialAwarenessEventData(EventSystem eventSystem)
Parameters
Type | Name | Description |
---|---|---|
EventSystem | eventSystem |
MixedRealitySpatialAwarenessEventData(EventSystem)
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 |
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. |
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. |
Implements
BaseEventData