Прочетете на английски Редактиране

Споделяне чрез


GenericBaseEventData Class

Definition

Generic Base Event Data for Sending Events through the Event System.

C++
public ref class GenericBaseEventData : UnityEngine::EventSystems::BaseEventData
Inheritance
UnityEngine.EventSystems.BaseEventData
GenericBaseEventData
Derived

Constructors

Properties

EventSource

The Event Source that the event originates from.

EventTime

The UTC time at which the event occurred.

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.

Methods

BaseInitialize(IMixedRealityEventSource)

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

Applies to

Продукт Версии
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