Skip to content

Commit f1d94fd

Browse files
committed
Hide error for now
1 parent effcc2f commit f1d94fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

com.unity.netcode.gameobjects/Runtime/Core/NetworkObject.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2630,13 +2630,13 @@ internal List<NetworkBehaviour> ChildNetworkBehaviours
26302630

26312631
private List<NetworkBehaviour> BuildChildBehavioursList()
26322632
{
2633-
#if UNITY_EDITOR
26342633
if (NetworkManagerOwner == null)
26352634
{
2635+
#if TEST_NO_SINGLETON
26362636
Debug.LogError("NetworkManagerOwner should be set! Setting owner to NetworkManager.Singleton");
2637+
#endif
26372638
NetworkManagerOwner = NetworkManager.Singleton;
26382639
}
2639-
#endif
26402640

26412641
var networkBehaviours = GetComponentsInChildren<NetworkBehaviour>(true);
26422642
var childBehaviours = new List<NetworkBehaviour>(networkBehaviours.Length);

0 commit comments

Comments
 (0)