Scripting API

ExecuteEvents

static class in UnityEngine.EventSystems · UnityEngine.UI

23 of 23 of Unity's members
In Tassix

Sends events to the handlers on objects: on one object, or the first in its parent chain that handles it.

Properties 18

static EventFunction<IBeginDragHandler> beginDragHandler { get; }
static EventFunction<ICancelHandler> cancelHandler { get; }
static EventFunction<IDeselectHandler> deselectHandler { get; }
static EventFunction<IDragHandler> dragHandler { get; }
static EventFunction<IDropHandler> dropHandler { get; }
static EventFunction<IEndDragHandler> endDragHandler { get; }
static EventFunction<IInitializePotentialDragHandler> initializePotentialDrag { get; }
static EventFunction<IMoveHandler> moveHandler { get; }
static EventFunction<IPointerClickHandler> pointerClickHandler { get; }
static EventFunction<IPointerDownHandler> pointerDownHandler { get; }
static EventFunction<IPointerEnterHandler> pointerEnterHandler { get; }
static EventFunction<IPointerExitHandler> pointerExitHandler { get; }
static EventFunction<IPointerMoveHandler> pointerMoveHandler { get; }
static EventFunction<IPointerUpHandler> pointerUpHandler { get; }
static EventFunction<IScrollHandler> scrollHandler { get; }
static EventFunction<ISelectHandler> selectHandler { get; }
static EventFunction<ISubmitHandler> submitHandler { get; }
static EventFunction<IUpdateSelectedHandler> updateSelectedHandler { get; }

Methods 6

static bool CanHandleEvent<T>(GameObject go)
static bool Execute<T>(GameObject target, BaseEventData eventData, EventFunction<T> functor)

Calls every enabled handler of T on the object; whether there was any.

static GameObject? ExecuteHierarchy<T>(GameObject? root, BaseEventData eventData, EventFunction<T> callbackFunction)

Sends the event to the first object from root up that handles it; that object, or null.

static void GetEventChain(GameObject? root, IList<Transform> eventChain)
static GameObject? GetEventHandler<T>(GameObject? root)

The first object from root up with an enabled handler of T.

static T ValidateEventData<T>(BaseEventData data)