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

PUN reconnect / player actorID

$
0
0
Hello,
Another question about reconnect:
From what i understand, the PhotonPlayer ID gets changed on player rejoin and you can do the reconnect in 2 ways:
- easy : ReconnectAndRejoin function
- harder: keep name of room and old player ID and connect to Photon on disconnect then connect to the same room passing the old player ID also.

Is there any way to keep the same player ID on reconnect?

So far I think I need to send a RPC after the reconnect to tell my old ID to the other players in the room but was curious if there is a way to know this is that user that disconnected without needing another RPC call.

Thanks.

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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