We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent effcc2f commit f1d94fdCopy full SHA for f1d94fd
com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs
@@ -2630,13 +2630,13 @@ internal List<NetworkBehaviour> ChildNetworkBehaviours
2630
2631
private List<NetworkBehaviour> BuildChildBehavioursList()
2632
{
2633
-#if UNITY_EDITOR
2634
if (NetworkManagerOwner == null)
2635
+#if TEST_NO_SINGLETON
2636
Debug.LogError("NetworkManagerOwner should be set! Setting owner to NetworkManager.Singleton");
2637
+#endif
2638
NetworkManagerOwner = NetworkManager.Singleton;
2639
}
-#endif
2640
2641
var networkBehaviours = GetComponentsInChildren<NetworkBehaviour>(true);
2642
var childBehaviours = new List<NetworkBehaviour>(networkBehaviours.Length);
0 commit comments