question

sezerbulanik avatar image
sezerbulanik asked

playfab + photon nickname


I am developing a project using playfab + photon cs. I am creating a user with playfab with I set up photon rooms with cs in the second scene, but how can I use the playfab username in photon

 public void OnLoginButtonClicked()
    {
        string playerName = playerNameInput.text;
        if (!string.IsNullOrEmpty(playerName))
        {
            PhotonNetwork.LocalPlayer.NickName = playerName;
            PhotonNetwork.ConnectUsingSettings();
        }
        else
        {
            Debug.Log("Playername is invalid!");
        }
    }
How can I use the playfab username in the line LocalPlayer.NickName in this line ??
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

JayZuo avatar image JayZuo ♦ commented ·

According to your code, you've set "PhotonNetwork.LocalPlayer.NickName= playerName;". I'm not sure what your question is. Do you want to know how to get PlayFab username?

0 Likes 0 ·
hak99922 avatar image hak99922 JayZuo ♦ commented ·

How can I get my PlayFab username?

0 Likes 0 ·

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.