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

CleanupCacheOnLeave setting ignored on disconnect

$
0
0
Using Photon version 2.30.

When a player disconnects, CleanupCacheOnLeave set to false isn't honored causing player instantiated objects to despawn. On player disconnect, MatchMakingCallbackTargets.OnLeftRoom() gets called, which triggers a call to PhotonNetwork.LocalCleanupAnythingInstantiated(true) which removes all player instantiated networked gameobjects. Somewhere along this call chain, there should be a check for PhotonNetwork.CurrentRoom.AutoCleanUp to honor the CleanupCacheOnLeave setting.

Possibly related issue: https://forum.photonengine.com/discussion/comment/54323

Viewing all articles
Browse latest Browse all 8947

Trending Articles



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