Leave Room

Overview

Leaves the local player's room.

Methods

LeaveRoom(Action<bool, SWLobbyError>)

Called by players to begin an asynchronous operation to leave their rooms.

Class

SWLobbyError

The error that occurred when a lobby API operation failed.

Example

NetworkClient.Lobby.LeaveRoom((successful, error) =>{
if (successful) {
Debug.Log("Left room");
}
else {
Debug.Log("Failed to leave room " + error);
}
});