Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

Can not fond room with the settings

$
0
0
Hello everyone. I have trouble with my photon connection to a room that has some settings. My room creation is here
RoomOptions ro  = new RoomOptions();
        ExitGames.Client.Photon.Hashtable ht = new ExitGames.Client.Photon.Hashtable();
        ht.Add("Type", 1);
        ro.CustomRoomProperties = ht;
        PhotonNetwork.CreateRoom(null, ro, null, null);
And connection to the room
       PhotonNetwork.JoinRandomRoom(new ExitGames.Client.Photon.Hashtable() {{ "Type", 1 }}, 4);
But when i want to connect second player to the room he creates new room instead of join. However, count of player in room that was created first is less then maximum number of players in this room. If i use this
      PhotonNetwork.JoinRandomRoom();
There are no problems. Thank you.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>