Change Room Settings

Overview

Changes the room settings.
Only the room owners can change the settings of their rooms.
Methods
Called by room owners to begin an asynchronous operation to change the settings of their rooms using the specified playerTimeToLive and isPrivate.
Class
The error that occurred when a lobby API operation failed.

Example

1
// Sets the room's playerTimeToLive to 500 seconds
2
// Makes the room public
3
NetworkClient.Lobby.ChangeRoomSettings(500, false, (bool successful, SWLobbyError error) =>{
4
if (successful) {
5
Debug.Log("Changed room settings.");
6
}
7
else {
8
Debug.Log("Failed to change room settings " + error);
9
}
10
});
Copied!
Copy link