How to get UserID of remote player in a Room.

Options

Hello, how can we access UserID of each remote players?

I need the UserID, because it is integrated with Playfab and Photon UserID and Playfab ID is set equal. to access all data in Playfab, i need to access UserID of each players.


PublishUserId is set true.

Best Answer

  • Klover
    Klover ✭✭
    Answer ✓
    Options

    Have you figured it out or you still need help?

Answers

  • Klover
    Klover ✭✭
    Answer ✓
    Options

    Have you figured it out or you still need help?

  • kenKen
    Options

    yes i still need help, still struggling this point.

  • Klover
    Options

    oh crap sorry i haven't gotten back to you, been busy. Reference their PhotonView


    PhotonView photonView;


    void Start()

    {

    string id = photonView.ViewId.ToString();

    }