diff --git a/Assets/Mirror/Core/NetworkConnectionToClient.cs b/Assets/Mirror/Core/NetworkConnectionToClient.cs index 361b00c34..68e205fd3 100644 --- a/Assets/Mirror/Core/NetworkConnectionToClient.cs +++ b/Assets/Mirror/Core/NetworkConnectionToClient.cs @@ -204,10 +204,9 @@ internal void DestroyOwnedObjects() { if (netIdentity != null) { - // unspawn scene objects, destroy instantiated objects. - // fixes: https://github.com/MirrorNetworking/Mirror/issues/3538 + // disown scene objects, destroy instantiated objects. if (netIdentity.sceneId != 0) - NetworkServer.UnSpawn(netIdentity.gameObject); + NetworkServer.RemovePlayerForConnection(this, RemovePlayerOptions.KeepActive); else NetworkServer.Destroy(netIdentity.gameObject); }