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

Update playerName for FindFriends without reconnecting

$
0
0
Is there a way to update he playerName without reconnecting? From what I have seen is that you have to set the playerName before connecting.

My game flow works like this for new players
1. Player starts the game as an anonymous player
2. Player clicks Facebook and it returns his ID
3. Then I set PhotonNetwork.playerName = facebookID

4. Disconnect and reconnect this is the step I want to skip!

5. PlayerName is updated and other people can see the status

Viewing all articles
Browse latest Browse all 8947

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>