public void shutdown() { sceneViewController.destroyCameras(); virtualTextureLink.sceneUnloading(scene); lightManager.sceneUnloading(scene); objectMover.sceneUnloading(scene); modelController.destroyModel(); scene.Dispose(); }
/// <summary> /// Called when a scene is unloading, this is called by changeScene and Dispose. /// </summary> private void unloadScene() { if (movementSequenceController != null && movementSequenceController.Playing) { movementSequenceController.stopPlayback(); } if (SceneUnloading != null && medicalController.CurrentScene != null) { SceneUnloading.Invoke(medicalController.CurrentScene); } if (anatomyController != null) { anatomyController.sceneUnloading(); } if (sceneViewController != null) { sceneViewController.destroyCameras(); } if (lightManager != null) { lightManager.sceneUnloading(medicalController.CurrentScene); } }
/// <summary> /// Callback for when the scene is unloading. /// </summary> /// <param name="controller"></param> /// <param name="scene"></param> private void sceneController_OnSceneUnloading(SceneController controller, SimScene scene) { sceneViewController.destroyCameras(); lightManager.sceneUnloading(scene); selectionMovementTools.sceneUnloading(scene); }
private void SceneController_OnSceneUnloading(SceneController controller, SimScene scene) { lightManager.sceneUnloading(scene); sceneViewController.destroyCameras(); }