When PlayFabMultiplayer.OnLobbyFindLobbiesCompleted fires, all the lobbies in the result always has 0 MaxMemberCount and 0 CurrentMemberCount.
Running the HTTP request with Postman shows the correct numbers (https://{ {TitleId}}.playfabapi.com/Lobby/FindLobbies).
private void PlayFabMultiplayer_OnLobbyFindLobbiesCompleted(IList<LobbySearchResult> searchResults, PFEntityKey searchingEntity, int reason) { if (LobbyError.SUCCEEDED(reason)) { // Successfully found lobbies m_lobbyInfoEntryList.Clear(); m_lobbyInfoEntryList.LobbyInfoLobbyDictionary.Clear(); // Iterate through lobby search results foreach (LobbySearchResult result in searchResults) { Debug.Log("Found a lobby!"); m_lobbyInfoEntryList.AddToList(new LobbyInfoEntry() { MaxPlayers = result.MaxMemberCount, CurrentPlayers = result.CurrentMemberCount, LobbyOwner = result.OwnerEntity.Id, ConnectionString = result.ConnectionString, RoomName = result.SearchProperties["string_key1"] }); } } else { // Error finding lobbies Debug.Log("Error finding lobbies"); } m_findLobbiesInProgress = false; /*if(m_lobbyInfoEntryList.Values.Count != 0) { m_lobbyInfoEntryList.SelectedLobbyInfoEntry = m_lobbyInfoEntryList.Values.First(); JoinLobby(m_lobbyInfoEntryList.SelectedLobbyInfoEntry.ConnectionString); }*/ }
Setting a breakpoint with the debugger at lines
MaxPlayers = result.MaxMemberCount, CurrentPlayers = result.CurrentMemberCount,
shows that result.MaxMemberCount and result.CurrentMemberCount always is 0.