CloseDefaultSession() public static method

Close the default session.
public static CloseDefaultSession ( ) : bool
return bool
Ejemplo n.º 1
0
	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!");
	    }
	}
Ejemplo n.º 2
0
        /// <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! ");
            }
        }