This commit is contained in:
vis2k 2023-01-06 14:09:30 +01:00
parent 45aaebb878
commit 72657c61be

View File

@ -1379,6 +1379,7 @@ static void SpawnObject(GameObject obj, NetworkConnection ownerConnection)
identity.netId = NetworkIdentity.GetNextNetworkId();
// add to spawned (after assigning netId)
Debug.Log($"Server: Adding {identity} to spawned with netId={identity.netId}");
spawned[identity.netId] = identity;
// callback after all fields were set