From 5692709b62095a08e25172d6a4dfba51e47355f5 Mon Sep 17 00:00:00 2001 From: uwee Date: Fri, 19 Feb 2021 17:40:53 -0500 Subject: [PATCH] fix: no longer true. spawnableobjects populated by FindObjectsOfTypeAll (#622) --- Assets/Mirage/Editor/NetworkScenePostProcess.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Assets/Mirage/Editor/NetworkScenePostProcess.cs b/Assets/Mirage/Editor/NetworkScenePostProcess.cs index 456f0baabad..0b91e64fc05 100644 --- a/Assets/Mirage/Editor/NetworkScenePostProcess.cs +++ b/Assets/Mirage/Editor/NetworkScenePostProcess.cs @@ -66,9 +66,6 @@ static void PrepareSceneObject(NetworkIdentity identity) // set scene hash identity.SetSceneIdSceneHashPartInternal(); - // disable it - // note: NetworkIdentity.OnDisable adds itself to the - // spawnableObjects dictionary (only if sceneId != 0) identity.gameObject.SetActive(false); // safety check for prefabs with more than one NetworkIdentity