MixedRealitySpatialAwarenessEventData<T> Class

Definition

Data for spatial awareness events.

C++
generic <typename T>
public ref class MixedRealitySpatialAwarenessEventData : Microsoft::MixedReality::Toolkit::SpatialAwareness::MixedRealitySpatialAwarenessEventData

Type Parameters

T

The spatial object data type.

Inheritance
UnityEngine.EventSystems.BaseEventData
MixedRealitySpatialAwarenessEventData<T>

Constructors

Properties

EventSource

The Event Source that the event originates from.

(Inherited from GenericBaseEventData)
EventTime

The UTC time at which the event occurred.

(Inherited from GenericBaseEventData)
Id

Identifier of the object associated with this event.

(Inherited from MixedRealitySpatialAwarenessEventData)
selectedObject

The BaseEventData.selectedObject is explicitly hidden because access to it (either via get or set) throws a NullReferenceException in typical usage within the MRTK. Prefer using the subclasses own fields to access information about the event instead of fields on BaseEventData.

(Inherited from GenericBaseEventData)
SpatialObject

The spatial object to which this event pertains.

Methods

BaseInitialize(IMixedRealityEventSource)

Used to initialize/reset the event and populate the data.

(Inherited from GenericBaseEventData)
Initialize(IMixedRealitySpatialAwarenessObserver, Int32, T)

Initialize the event data.

Initialize(IMixedRealitySpatialAwarenessObserver, Int32)

Initialize the event data.

(Inherited from MixedRealitySpatialAwarenessEventData)

Applies to

Produkt Versioner
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0