/// <summary> /// Stops the rendering process and all threads /// </summary> public void ShutDown() { shuttingDown = true; traversalThread.Stop(); lock (traversalThread) { Monitor.PulseAll(traversalThread); } loadingThread.Stop(); }
/// <summary> /// Stops the rendering process and all threads /// </summary> public void ShutDown() { Debug.Log("Renderer Shutting down"); shuttingDown = true; traversalThread.Stop(); lock (traversalThread) { Monitor.PulseAll(traversalThread); } loadingThread.Stop(); foreach (Node node in rootNodes) { Debug.Log(node); lock (node) { node.RemoveAllGameObjects(config); } } }