Legacy Documentation: Version 4.6(go to latest)
Language: English
  • C#
  • JS
  • Boo

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

BaseEventData

Namespace: UnityEngine.EventSystems

Description

A class that contains the base event data that is common to all event types in the new EventSystem.

Variables

currentInputModule A reference to the BaseInputModule that sent this event.
selectedObject The object currently considered selected by the EventSystem.
used Has the event been marked as used?

Constructors

BaseEventData Construct a BaseEventData tied to the passed EventSystem.

Functions

Reset Reset the Event to the default state.
Use Use the event.