Changes the room settings.
Only the room owners can change the settings of their rooms.
Methods | ​ |
​ChangeRoomSettings(int, int, Action<bool, SWLobbyError>)​ | Called by room owners to begin an asynchronous operation to change the settings of their rooms using the specified playerTimeToLive and isPrivate. |
Class | ​ |
​SWLobbyError​ | The error that occurred when a lobby API operation failed. |
// Sets the room's playerTimeToLive to 500 seconds// Makes the room publicNetworkClient.Lobby.ChangeRoomSettings(500, false, (bool successful, SWLobbyError error) =>{if (successful) {Debug.Log("Changed room settings.");}else {Debug.Log("Failed to change room settings " + error);}});