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

PhotonNetwork.GetRoomList() returning zero.

$
0
0
Hi,
Master client creates room using
PhotonNetwork.CreateRoom(name,
             new RoomOptions() { isVisible = true, isOpen = true, maxPlayers = (byte)maxPlayersCount }, TypedLobby.Default)
. But from the client side even after doing the initial setup of photon I log the rooms count here
public override void OnReceivedRoomListUpdate()
    {
        Debug.Log("OnReceivedRoomListUpdate called");

        if (m_notifier != null)
        {
            m_notifier.OnSessionListRefreshed();
            RoomInfo[] roomsList = PhotonNetwork.GetRoomList();
            Debug.Log(" OnReceivedRoomListUpdate Room list count" + roomsList.Length);
        }
    }
But still the length is zero and i have Auto Join lobby true in settings.

Pleas help!

Viewing all articles
Browse latest Browse all 8947

Trending Articles