Custom Properties Problems

Options
Hello There,
I've some problems in understanding custom properties and matchmaking possibilities in PUN.

I'm making a little android game that will have more game modes that could be played by players. For now i was tryng to set customproperties for the Zombie Game Mode.

For a better understanding i'll give you a link to my pastebin code:
http://pastebin.com/cNxvTaqd

The first function is an UI button callback.

The problem is that, after tryng the code with two istances of the game, i'm not able to join the same room even if there is one created with the same custom properties.

What am i doing wrong?

Thank you very much for your help

Comments

  • JohnTube
    JohnTube ✭✭✭✭✭
    Options
    Hi @Baenor,

    You should make the custom room properties used for matchmaking visible from the lobby. You should add the following line:
    RoomOptions zombie = new RoomOptions();
    zombie.customRoomPropertiesForLobby = new string[] {"gm"};
    For more information about this check this doc-api reference link.
  • Baenor
    Options
    thanks a lot!