Leave Room

Overview

Leaves the local player's room.
Methods
Called by players to begin an asynchronous operation to leave their rooms.
Class
The error that occurred when a lobby API operation failed.

Example

1
NetworkClient.Lobby.LeaveRoom((successful, error) =>{
2
if (successful) {
3
Debug.Log("Left room");
4
}
5
else {
6
Debug.Log("Failed to leave room " + error);
7
}
8
});
Copied!
Copy link