C# |
---|
public const int SHUTDOWN = 2 |
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.
C# |
---|
Vrml.EAI.Event.BrowserEvent evt = ...; if (evt.ID == Vrml.EAI.Event.BrowserEvent.SHUTDOWN) { // The browser is about to unload a scene ... } |