# VisualElementFocusRing

> Implementation of a linear focus ring. Elements are sorted according to their focusIndex.

## Definition

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

```csharp
public class VisualElementFocusRing : IFocusRing
```

## Constructors

| Constructor                                                                                                                                                                                                           | Description  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------ |
| [VisualElementFocusRing(UnityEngine.UIElements.VisualElement,UnityEngine.UIElements.VisualElementFocusRing.DefaultFocusOrder)](/engine/6000.0/script-reference/unityengine/uielements/visualelementfocusring/ctor.md) | Constructor. |

## Properties

| Property                                                                                                                  | Description                                             |
| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------- |
| [defaultFocusOrder](/engine/6000.0/script-reference/unityengine/uielements/visualelementfocusring/defaultfocusorder-1.md) | The focus order for elements having 0 has a focusIndex. |

## Methods

| Method                                                                                                                              | Description                                                                                                                                                               |
| ----------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [GetFocusChangeDirection](/engine/6000.0/script-reference/unityengine/uielements/visualelementfocusring/getfocuschangedirection.md) | 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 in the focus ring. |
| [GetNextFocusable](/engine/6000.0/script-reference/unityengine/uielements/visualelementfocusring/getnextfocusable.md)               | Get the next element in the given direction.                                                                                                                              |

## Enums

| Enum                                                                                                                                           | Description                             |
| ---------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| [VisualElementFocusRing.DefaultFocusOrder](/engine/6000.0/script-reference/unityengine/uielements/visualelementfocusring/defaultfocusorder.md) | Ordering of elements in the focus ring. |
