# closing

> This event is called before a tab is closed. Return true if the tab can be closed.

## Definition

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

```csharp
public event Func<bool> closing
```

### Remarks

In the case where more than one event are assigned, all of them will be executed synchronously but only the last value will be taken into account.
