# FocusChangeDirection

> Base class for defining in which direction the focus moves in a focus ring.

## Definition

* **Type:** Class
* **Namespace:** [UnityEngine.UIElements](/engine/6000.0/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule
* **Implements:** [IDisposable](https://learn.microsoft.com/dotnet/api/system.idisposable)

```csharp
public class FocusChangeDirection : IDisposable
```

## Remarks

Focus ring implementations can move the focus in various direction; they can derive from this class to formalize the various ways the focus can change from one element to the other.

## Static Properties

| Property                                                                                                  | Description                                                                        |
| --------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| [lastValue](/engine/6000.0/script-reference/unityengine/uielements/focuschangedirection/lastvalue.md)     | Last value for the direction defined by this class.                                |
| [none](/engine/6000.0/script-reference/unityengine/uielements/focuschangedirection/none.md)               | The null direction. This is usually used when the focus stays on the same element. |
| [unspecified](/engine/6000.0/script-reference/unityengine/uielements/focuschangedirection/unspecified.md) | Focus came from an unspecified direction, for example after a mouse down.          |

## Methods

| Method                                                                                            | Description                                                                                                                                                                                         |
| ------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Dispose](/engine/6000.0/script-reference/unityengine/uielements/focuschangedirection/dispose.md) | This method will be called when FocusController has finished treating this focus change directive. If the reference came from a pool, this method can be used to release the data back to the pool. |
