# GetFocusChangeDirection(Focusable, EventBase)

> Get the direction of the focus change for the given event. For example, when the Tab key is pressed, focus should be given to the element to the right.

## Definition

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

```csharp
FocusChangeDirection GetFocusChangeDirection(Focusable currentFocusable, EventBase e)
```

### Parameters

**** (\[Focusable]\(/engine/6000.0/script-reference/unityengine/uielements/focusable)): **** (\[EventBase]\(/engine/6000.0/script-reference/unityengine/uielements/eventbase)):&#x20;

### Returns

| Type                                                                                                   | Description |
| ------------------------------------------------------------------------------------------------------ | ----------- |
| [FocusChangeDirection](/engine/6000.0/script-reference/unityengine/uielements/focuschangedirection.md) |             |
