Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

Server Custom Properties

$
0
0
I've (many times) gone over many documents regarding this topic, but they all appear to be outdated. The "Matchmaking guide" which I so often stumble across doesn't even work on its own right with the example code they provide.

After much research, the best I could do in terms of custom room properties was this:
string roomName;
byte maxPlayers;
PhotonNetwork.CreateRoom(roomName, new RoomOptions() {MaxPlayers = maxPlayers}, null);

And that just barely scratches the surface of what I'm trying to do. I need to be able to define map & game mode as a room property and make sure that it's able to be found in the lobby. I've tried a thousand different ways of going about this, but whatever doc I read just simply doesn't work in Unity (My only assumption is an API change occurred).

Any and all help is greatly appreciated! I just need two strings ("Map" and "Gamemode") to be defined, but I can't seem to even do that much.

Viewing all articles
Browse latest Browse all 15755

Trending Articles