diff --git a/Assets/Mirror/Runtime/NetworkServer.cs b/Assets/Mirror/Runtime/NetworkServer.cs index ff899c924..01e22c546 100644 --- a/Assets/Mirror/Runtime/NetworkServer.cs +++ b/Assets/Mirror/Runtime/NetworkServer.cs @@ -138,11 +138,14 @@ static void CleanupNetworkIdentities() { if (identity != null) { + // scene objects are reset and disabled. + // they always stay in the scene, we don't destroy them. if (identity.sceneId != 0) { identity.Reset(); identity.gameObject.SetActive(false); } + // spawned objects are destroyed else { GameObject.Destroy(identity.gameObject);