Get Players in Room

Overview

Gets the players' information of the local player's current room.

Example

NetworkClient.Lobby.GetPlayersInRoom((successful, reply, error) =>{
	if (successful){
		Debug.Log("Got players " + reply);
		foreach(SWPlayer player in reply.players){
			Debug.Log("Player custom data: " + player.GetCustomDataString());
		}
	}
	else{
		Debug.Log("Failed to get players " + error);
	}
});

Last updated