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

Sending player some initial data with OnPlayerEnteredRoom - does it work for subsequent scenes?

$
0
0
I'm currently sending a newly joining client some initial data about an object by sending him an RPC in OnPlayerEnteredRoom, but I was wondering: if the players change scenes, and the MasterClient creates a new object before the other player has finished loading, he'll need that initial data again for the new object in the new scene (but obviously OnPlayerEnteredRoom will not fire again. What callback should I use in this case? Is there some Photon callback for when a client finishes loading the level? Or does the host wait for all clients to load a network loaded level before allowing the master client to act/play?

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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