Photon Turnbased friend list


I have Photon Turnbased working in our game and it runs smoothly, but I haven't been able to figure out is how to get a friend list working. Is there anything like PhotonNetwork.FindFriends() from PUN in Photon Turnbased?

Thank you in advance for any help you can give.


  • JohnTube
    JohnTube ✭✭✭✭✭

    If you're looking for a way to persist the UserId's of the friended players, Photon Turnbased does not save friends list, you need other service like PlayFab that has a more complete friends system.

    The equivalent of PhotonNetwork.FindFriends() is the async. call to LoadBalancingClient.FindFriends(int[] friendUserIds) and you'll get an OnOperationResponse(OperationResponse operationResponse) with operationResponse.OperationCode == OperationCode.FindFriends (222), from that moment you can access LoadBalancingClient.FriendsList which is a List<FriendInfo> that will tell you if your friends are online and in which Room.