Class BaseEventData
A class that contains the base event data that is common to all event types in the new EventSystem.
Inherited Members
Namespace: UnityEngine.EventSystems
Assembly: UnityEngine.UI.dll
Syntax
public class BaseEventData : AbstractEventData
Constructors
BaseEventData(EventSystem)
Declaration
public BaseEventData(EventSystem eventSystem)
Parameters
| Type | Name | Description |
|---|---|---|
| EventSystem | eventSystem |
Properties
currentInputModule
A reference to the BaseInputModule that sent this event.
Declaration
public BaseInputModule currentInputModule { get; }
Property Value
| Type | Description |
|---|---|
| BaseInputModule |
selectedObject
The object currently considered selected by the EventSystem.
Declaration
public GameObject selectedObject { get; set; }
Property Value
| Type | Description |
|---|---|
| GameObject |