public static void CloseDefaultSession() { bool bResult = HEU_SessionManager.CloseDefaultSession(); if (!bResult) { HEU_EditorUtility.DisplayErrorDialog("Closing Default Session", HEU_SessionManager.GetLastSessionError(), "OK"); } else { Debug.Log("Houdini Engine Session closed!"); } }
/// <summary> /// Disconnect from SessionSync and close session. /// </summary> void Disconnect(HEU_SessionSyncData syncData) { if (syncData != null) { syncData.SyncStatus = HEU_SessionSyncData.Status.Stopped; // Store the sync info as it gets cleared in the session below _connectionSyncData = syncData; } if (HEU_SessionManager.CloseDefaultSession()) { Log("Connection closed!"); } else { Log("Failed to close session! "); } }