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

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

Last updated