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
logger.LogWarning($"Spawn Identity already had a netId but SpawnMessage has a differnet NetId. Current Id={spawnedIdentity.NetId}, SpawnMessag Id={msg.NetId}");
555
+
logger.LogWarning($"Spawn Identity already had a netId but SpawnMessage has a different NetId. Current Id={spawnedIdentity.NetId}, SpawnMessag Id={msg.NetId}");
551
556
552
557
ApplySpawnPayload(spawnedIdentity,msg);
553
558
@@ -571,6 +576,8 @@ private async UniTaskVoid OnSpawnAsync(SpawnHandlerAsyncDelegate spawnHandler, S
571
576
msg.Payload=reader.Read<ArraySegment<byte>>();
572
577
573
578
varidentity=awaitspawnHandler.Invoke(msg);
579
+
if(identity==null)
580
+
thrownewSpawnObjectException($"Async Spawn handler for prefabHash={msg.PrefabHash:X} returned null");
thrownewSpawnObjectException($"Scene object is null, sceneId={msg.SceneId:X}, NetId={msg.NetId}");
629
+
619
630
if(logger.LogEnabled())logger.Log($"[ClientObjectManager] Found scene object for netid:{msg.NetId}, sceneId:{msg.SceneId.Value:X}, obj:{foundSceneObject}");
620
631
returnfoundSceneObject;
621
632
}
622
633
623
634
// failed to spawn
624
-
varerrorMsg=$"Failed to spawn scene object sceneId={msg.SceneId:X}";
635
+
varerrorMsg=$"Could not find scene object with sceneId={msg.SceneId:X}, NetId={msg.NetId}. Enable full logs in project settings to see current list of SpawnableObjects in the scene";
625
636
// dump the whole spawnable objects dict for easier debugging
0 commit comments