# Editor.PanelWindow.OnCloseRequested

```csharp
System.Action OnCloseRequested { get; set; }
```

Called when the user clicks the window's close button. The window closes if this is null.

Declared in [Editor.PanelWindow](/api/Editor.PanelWindow).
Assembly: `Sandbox.Tools`.
