MaxPlayers not setting limit.

The code I have:

RoomOptions roomOptions = new RoomOptions() { IsVisible = true, IsOpen = true, MaxPlayers = 4};

PhotonNetwork.CreateRoom("Room "+Random.Range(100,1000), new RoomOptions());

I tested, and its allowing like 6+ people join...

Also when I pull roomInfo.MaxPlayers; it shows as 0...

Best Answer

  • Tobias
    Tobias admin
    Accepted Answer

    You want to pass roomOptions as parameter to CreateRoom.