# Sandbox.UI.ScriptControl.OnDiagnosticsChanged

```csharp
System.Action<IReadOnlyList<Diagnostic>> OnDiagnosticsChanged { get; set; }
```

Called when analysis produces a new diagnostic snapshot, before the display delay.

Declared in [Sandbox.UI.ScriptControl](/api/Sandbox.UI.ScriptControl).
Assembly: `Sandbox.Engine`.
