I attached a simple project with 13 lines of code that shows how NetworkManager:OnServerDisconnect is never called when the host disconnects. This is a problem because often game servers need to save player data after the player quits the game. This works fine for clients that connect to the server, because OnServerDisconnect is called when those clients quit the game.
It is however not called when I run the server as host (aka I also play on it) and then stop the...
Bug: NetworkManager's OnServerDisconnect function is never called for Host
It is however not called when I run the server as host (aka I also play on it) and then stop the...
Bug: NetworkManager's OnServerDisconnect function is never called for Host