# HandleEvent(EventBase)

> Handles an event according to its propagation phase and current target, by executing the element's default action or callbacks associated with the event.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.UIElements](/engine/6000.7/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
void HandleEvent(EventBase evt)
```

### Parameters

**** (\[EventBase]\(/engine/6000.7/script-reference/unityengine/uielements/eventbase)): The event to handle.

### Remarks

The [EventDispatcher](/engine/6000.7/script-reference/unityengine/uielements/eventdispatcher.md) might invoke this method multiple times for the same event: once for each propagation phase and each target along the event's propagation path if it has matching callbacks or overrides default actions for the event.

**Note:** Do not use this method to intercept all events whose propagation path includes this element. There is no guarantee that it will or will not be invoked for a propagation phase or target along the propagation path if that target has no callbacks for the event and has no default action override that can receive the event.

Additional Resources: [CallbackEventHandler.RegisterCallback](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/registercallback.md), [CallbackEventHandler.HandleEventBubbleUp](/engine/6000.7/script-reference/unityengine/uielements/callbackeventhandler/handleeventbubbleup.md)
