void Stop() { if (null != _contextObject) { Debug.Log("Shutting down OSVR."); _contextObject.Dispose(); _contextObject = null; } }
//Shutdown RenderManager and Dispose of the ClientContext we created for it public void ExitRenderManager() { ShutdownRenderManager(); if (null != _renderManagerClientContext) { _renderManagerClientContext.Dispose(); _renderManagerClientContext = null; } }
void Stop() { // Only stop the main instance, since it is the only one that // ever actually starts-up. if (this == instance) { if (null != _contextObject) { Debug.Log("[OSVR-Unity] Shutting down OSVR."); _contextObject.Dispose(); _contextObject = null; } } }
void Stop() { // Only stop the main instance, since it is the only one that // ever actually starts-up. if (this == instance) { if (null != _contextObject) { Debug.Log("[OSVR-Unity] Shutting down OSVR."); _contextObject.Dispose(); _contextObject = null; #if UNITY_STANDALONE_WIN || UNITY_ANDROID if (_serverAutoStarter != null) { _serverAutoStarter.Dispose(); _serverAutoStarter = null; } #endif } } }