Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

Bug: Player OnDestroy is never called on Server

$
0
0
I attached a project with 10 lines of code, it's very simple:
  • start it in the Editor
  • select Start Host (spawns a Player)
  • stop the Editor with the Editor stop button (not the ingame NetworkManagerHud stop button)
    • usually this result in OnDestroy being called in GameObjects
  • see how OnDestroy is called in the Player Script, but:
    • it's never called with 'isServer == true', so it's only called for isClient and isLocalPlayer
    ...

Bug: Player OnDestroy is never called on Server

Viewing all articles
Browse latest Browse all 16796

Trending Articles



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