# focusChanged

> Defines the delegate to use to register for events in which the focus gained or lost.

## Definition

* **Type:** Event
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public static event Action<bool> focusChanged
```

### Remarks

This delegate allows you to receive focus change events when implementing code that does not use the MonoBehviour namespace.

**Note**: When using this delegate to register for focus changed events in code that uses the MonoBehviour namespace you will also receive events from the [MonoBehaviour.OnApplicationFocus(bool)](/engine/6000.0/script-reference/unityengine/monobehaviour/onapplicationfocus.md) method if you have implemented it.
