Class ScriptDiagnosticsObserver
- Namespace
- LunyScript.Diagnostics /
- Assembly
- LunyScript.dll
Engine lifecycle observer for diagnostics tooling. Autoloaded by reflection via ILunyEngineObserver discovery. Exposes static startup/shutdown events so editor windows and runtime diagnostics tools can track engine lifetime without coupling to engine-specific lifecycle methods.
public sealed class ScriptDiagnosticsObserver : ILunyEngineObserver
Constructors
ScriptDiagnosticsObserver()
public ScriptDiagnosticsObserver()
Properties
Instance
public static ScriptDiagnosticsObserver Instance { get; }
Property Value
Events
OnDiagnosticsShutdown
Fired just before the engine shuts down. Instance is still valid when this fires.
public static event Action<ScriptDiagnosticsObserver> OnDiagnosticsShutdown
Event Type
OnDiagnosticsStartup
Fired when the engine starts up and the singleton Instance becomes valid. Subscribe to this event when Instance is null to be notified when diagnostics become available.
public static event Action<ScriptDiagnosticsObserver> OnDiagnosticsStartup