You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Log.Warning(newContext(LogLevel.Normal,$"Cannot register prefab to {nameof(NetworkManager)}, missing a {nameof(NetworkObject)} component at its root").AddObject(networkPrefab.Prefab));
if(childNetworkObjects.Count>1)// total count = 1 root NetworkObject + n child NetworkObjects
1866
+
{
1867
+
Log.Warning(newContext(LogLevel.Normal,$"Prefab has child {nameof(NetworkObject)}(s) but they will not be spawned across the network (unsupported {nameof(NetworkPrefab)} setup)").AddObject(networkPrefab.Prefab));
NetworkLog.LogWarningServer($"[Invalid Owner] Cannot send Ownership change as client-{clientId} cannot see {networkObject.name}! Use {nameof(NetworkObject.NetworkShow)} first.");
578
-
}
575
+
NetworkManager.Log.WarningServer(newContext(LogLevel.Developer,$"Cannot send Ownership change as client cannot see {nameof(NetworkObject)}! Use {nameof(NetworkObject.NetworkShow)} first.").AddInfo("Invalid Client",clientId).AddTag(networkObject.name).AddObject(networkObject));
@@ -120,12 +118,11 @@ public void NestedNetworkObjectPrefabCheck()
120
118
networkManager.OnValidate();
121
119
122
120
// Expect a warning
123
-
LogAssert.Expect(LogType.Warning,newRegex($@"{parent.name}\] Prefab has child {nameof(NetworkObject)}\(s\) but they will not be spawned across the network \(unsupported {nameof(NetworkPrefab)} setup\)"));
121
+
LogAssert.Expect(LogType.Warning,newRegex(@"Prefab has child NetworkObject\(s\) but they will not be spawned across the network"));
0 commit comments