Edytuj

Udostępnij za pośrednictwem


BaseEventSystem.HandleEvent<T> Method

Definition

The main function for handling and forwarding all events to their intended recipients.

public:
generic <typename T>
 where T : UnityEngine::EventSystems::IEventSystemHandler virtual void HandleEvent(UnityEngine::EventSystems::BaseEventData ^ eventData, UnityEngine::EventSystems::ExecuteEvents::EventFunction<T> ^ eventHandler);
public virtual void HandleEvent<T> (UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents.EventFunction<T> eventHandler) where T : UnityEngine.EventSystems.IEventSystemHandler;
abstract member HandleEvent : UnityEngine.EventSystems.BaseEventData * UnityEngine.EventSystems.ExecuteEvents.EventFunction<'T (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)> -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
override this.HandleEvent : UnityEngine.EventSystems.BaseEventData * UnityEngine.EventSystems.ExecuteEvents.EventFunction<'T (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)> -> unit (requires 'T :> UnityEngine.EventSystems.IEventSystemHandler)
Public Overridable Sub HandleEvent(Of T As IEventSystemHandler) (eventData As BaseEventData, eventHandler As ExecuteEvents.EventFunction(Of T))

Type Parameters

T

Event Handler Interface Type

Parameters

eventData
UnityEngine.EventSystems.BaseEventData

Event Data

eventHandler
ExecuteEvents.EventFunction<T>

Event Handler delegate

Implements

Applies to