Identifier for events that get sent when the browser is about to unload a 3D scene.
Declaring type: BrowserEvent
Namespace: Vrml.EAI.Event
Assembly: VrmlEAI.NET
Collapse/Expand Syntax
C#
public const int SHUTDOWN = 2
Collapse/Expand Remarks

The Browser object issues a SHUTDOWN event when the X3D browser is about to unload a 3D scene. This happens after calling the LoadURL or ReplaceWorld methods of the Browser object, or when the user loads a new scene via the browser user interface or quits the browser.

Receiving this event means that all existing references to nodes, event-in slots and event-out slots are about to become invalid. Do not call any methods of these objects anymore, instead dispose them.

Collapse/Expand Example
The following example demonstrates how to check if a SHUTDOWN event happened:
C#
Vrml.EAI.Event.BrowserEvent evt = ...;
if (evt.ID == Vrml.EAI.Event.BrowserEvent.SHUTDOWN)
{
    // The browser is about to unload a scene
    ...
}