# FocusController

> Class in charge of managing the focus inside a Panel.

## Definition

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

```csharp
public class FocusController
```

## Remarks

Each Panel should have an instance of this class. The instance holds the currently focused VisualElement and is responsible for changing it.

Additional Resources: [IPanel](/engine/6000.7/script-reference/unityengine/uielements/ipanel.md)

## Constructors

| Constructor                                                                                                                          | Description  |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------------ |
| [FocusController(UnityEngine.UIElements.IFocusRing)](/engine/6000.7/script-reference/unityengine/uielements/focuscontroller/ctor.md) | Constructor. |

## Properties

| Property                                                                                                   | Description                          |
| ---------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| [focusedElement](/engine/6000.7/script-reference/unityengine/uielements/focuscontroller/focusedelement.md) | The currently focused VisualElement. |

## Methods

| Method                                                                                               | Description                                                                                                                                                      |
| ---------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [IgnoreEvent](/engine/6000.7/script-reference/unityengine/uielements/focuscontroller/ignoreevent.md) | Instructs the FocusController to ignore the given event. This will prevent the event from changing the current focused VisualElement or triggering focus events. |
