# direction

> Direction of the focus change. This corresponds to the FocusChangeDirection used by the focus ring.

## Definition

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

```csharp
FocusChangeDirection direction { get; }
```

### Remarks

The [IFocusRing](/engine/6000.5/script-reference/unityengine/uielements/ifocusring.md) implementation determines what focus events are generated as a consequence of other input events. Focus events generally occur after any of the following situations:

* A [NavigationMoveEvent](/engine/6000.5/script-reference/unityengine/uielements/navigationmoveevent.md)

* A [PointerDownEvent](/engine/6000.5/script-reference/unityengine/uielements/pointerdownevent.md)

* Calling an element's [Focusable.Focus()](/engine/6000.5/script-reference/unityengine/uielements/focusable/focus.md) or [Focusable.Blur()](/engine/6000.5/script-reference/unityengine/uielements/focusable/blur.md) methods

The direction of the focus change contains information about the cause of the Focus event. It can be null if the focus change didn't happen as a consequence of another event.

Additional Resources: [VisualElementFocusChangeDirection](/engine/6000.5/script-reference/unityengine/uielements/visualelementfocuschangedirection.md), [IFocusRing](/engine/6000.5/script-reference/unityengine/uielements/ifocusring.md)
