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

Issue with (Re)connection and don't CleanupCacheOnLeave

$
0
0
Hello,

For a cooperative mini-game, i deactivate CleanupCacheOnLeave ( = false) to keep object create by player in scene after it's deconnection.
But i've got some issue:
  • If the player try to reconnect, the player crach because there is already same photonID in scene.
  • If a new player try to connect, there thousand of error because it's remaing photonID of deconnected player.


I've tried some stuff to isolate the issue:
  • If i set CleanupCacheOnLeave to true, there is no issue.
  • If i remove the instante (vie raiseevent) of remote player, there is no issue.

What i'm doing wrong? if anyone have solution or idea to resolve this issue. i'm all hear.
Nicolas

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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