Send map name to the lobby

Options
Hello guys I'm new here, so excuse me anything.

I wanted to spend an information to the players who are in the loby.
When the player create the room I wanted it to be a parameter passed to the map name.
I've tried numerous ways but not got success.

my code:

public void CreateRoom()
{

RoomOptions ro = new RoomOptions();
ro.isOpen = true;
ro.isVisible = true;
ro.maxPlayers = 10;
//ro.customRoomProperties = new ExitGames.Client.Photon.Hashtable();
//ro.customRoomProperties.Add(0, "Nome do mapa");
PhotonNetwork.CreateRoom(txtRoomName.text,ro, null);
}
void OnReceivedRoomListUpdate()
{

}

Callback CreateRoom() will create the room and set the map.
Callback OnReceivedRoomListUpdate() lists the rooms and takes the map name that was set in CreateRoom()

Help please.

Comments

  • vadim
    Options
    Hi,

    If you want room custom property to be visible in a lobby, add this property name to 'customRoomPropertiesForLobby' array of options which you use for room creation.