Change Room Custom Data

Overview

Changes the room custom data.

Only the room owners can change the custom data of their rooms.

Methods

ChangeRoomCustomData(string, Action<bool, SWLobbyError>)

Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified string.

ChangeRoomCustomData(object, Action<bool, SWLobbyError>)

Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified serializable object.

Class

SWLobbyError

The error that occurred when a lobby API operation failed.

Example

NetworkClient.Lobby.ChangeRoomCustomData("New room name", (bool successful, SWLobbyError error) =>{
if (successful) {
Debug.Log("Changed room custom data.");
}
else {
Debug.Log("Failed to change room custom data " + error);
}
});