Change Room Custom Data

Overview

Changes the room custom data.
Only the room owners can change the custom data of their rooms.
Methods
Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified string.
Called by room owners to begin an asynchronous operation to change the custom data of their rooms using the specified serializable object.
Class
The error that occurred when a lobby API operation failed.

Example

1
NetworkClient.Lobby.ChangeRoomCustomData("New room name", (bool successful, SWLobbyError error) =>{
2
if (successful) {
3
Debug.Log("Changed room custom data.");
4
}
5
else {
6
Debug.Log("Failed to change room custom data " + error);
7
}
8
});
Copied!
Copy link