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
// If not, then there is an issue (user possibly didn't register the prefab properly?)
908
908
if(networkPrefabReference==null)
909
909
{
910
-
if(NetworkLog.CurrentLogLevel<=LogLevel.Error)
911
-
{
912
-
NetworkLog.LogErrorServer($"[{nameof(globalObjectIdHash)}={globalObjectIdHash}] Failed to create object locally. {nameof(NetworkPrefab)} could not be found. Is the prefab registered with {NetworkManager.name}?");
913
-
}
910
+
NetworkManager.Log.ErrorServer(newContext(LogLevel.Error,$"Failed to create object locally. {nameof(NetworkPrefab)} could not be found. Is the prefab registered with this {nameof(NetworkManager)}").AddInfo(nameof(NetworkObject.GlobalObjectIdHash),globalObjectIdHash).AddTag(NetworkManager.name));
// Log the error that the NetworkObject failed to construct
1197
1194
if(networkObject==null)
1198
1195
{
1199
-
NetworkManager.Log.ErrorServer(newContext(LogLevel.Normal,$"Failed to spawn {nameof(NetworkObject)}").AddInfo(nameof(NetworkObject.GlobalObjectIdHash),serializedObject.Hash));
1196
+
NetworkManager.Log.ErrorServer(newContext(LogLevel.Normal,$"Failed to spawn {nameof(NetworkObject)}!").AddInfo(nameof(NetworkObject.GlobalObjectIdHash),serializedObject.Hash));
varfirstError=$"[Netcode] Failed to create object locally. [globalObjectIdHash={gloabalObjectId}]. NetworkPrefab could not be found. Is the prefab registered with NetworkManager?";
218
-
varsecondError=$"[Netcode] Failed to spawn NetworkObject for Hash {gloabalObjectId}.";
0 commit comments