LanguageEnglish
  • C#
  • JS

Script language

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

This version of Unity is unsupported.

ExecuteEvents<T0>.EventFunction<T0>

public delegate void EventFunction<T0>(T1 handler, EventSystems.BaseEventData eventData);

Description

Function definition for an EventFunction that is used to map a given EventInterface into a specific event call.

private static readonly EventFunction<IPointerEnterHandler> s_PointerEnterHandler = Execute;

private static void Execute(IPointerEnterHandler handler, BaseEventData eventData) { handler.OnPointerEnter (ValidateEventData<PointerEventData> (eventData)); }