master server,how to client get map name

I have a level selection options for my game, its works fine (selection and loading selected map).

public string[] supportedNetworkLevels; for the levels

and

public string currentMap; - selected map which will load.

The problem I want clients to see which map is loaded on server in their hostlists.

GUILayout.Label (hostData[i].gameName + "  |  " + hostData[i].connectedPlayers +"/"+ hostData[i].playerLimit + " | " + currentMap);
  • Ofcourse its can’t be so easy…

I suspect I should send some kind of RPC, but cant figure out how, pls tell me how to do that:roll_eyes:

You can’t connect to the master server using RPC’s. You only have the option to register or unregister a game.
http://docs.unity3d.com/Documentation/ScriptReference/MasterServer.html

Well, I know. I meant I should send RPC with map name to the clients or something like that, anyway how can it be done?

Yes, the server can send an RPC to to the clients.
http://docs.unity3d.com/Documentation/ScriptReference/NetworkView.RPC.html

use HostData.comment

You sir made my day, thx alot!!!