From c9dfd95bb701d978e8fd8c8afdfa616b1238b259 Mon Sep 17 00:00:00 2001 From: vis2k Date: Fri, 6 Jan 2023 17:40:57 +0100 Subject: [PATCH] add comment --- Assets/Mirror/Core/NetworkServer.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Assets/Mirror/Core/NetworkServer.cs b/Assets/Mirror/Core/NetworkServer.cs index 4ec8a829b..28e17b67c 100644 --- a/Assets/Mirror/Core/NetworkServer.cs +++ b/Assets/Mirror/Core/NetworkServer.cs @@ -1221,6 +1221,8 @@ public static bool SpawnObjects() if (!active) return false; + // find all NetworkIdentities in the scene. + // all of them are disabled because of NetworkScenePostProcess. NetworkIdentity[] identities = Resources.FindObjectsOfTypeAll(); // first pass: activate all scene objects