spawn scene object not found message shows sceneID as hex

This commit is contained in:
vis2k 2019-03-17 09:54:38 +01:00
parent 6af6b1780e
commit 46dd15d4a4

View File

@ -440,7 +440,7 @@ internal static void OnSpawnSceneObject(NetworkConnection conn, SpawnSceneObject
NetworkIdentity spawnedId = SpawnSceneObject(msg.sceneId);
if (spawnedId == null)
{
Debug.LogError("Spawn scene object not found for " + msg.sceneId + " SpawnableObjects.Count=" + spawnableObjects.Count);
Debug.LogError("Spawn scene object not found for " + msg.sceneId.ToString("X") + " SpawnableObjects.Count=" + spawnableObjects.Count);
// dump the whole spawnable objects dict for easier debugging
foreach (KeyValuePair<ulong, NetworkIdentity> kvp in spawnableObjects)
Debug.Log("Spawnable: SceneId=" + kvp.Key + " name=" + kvp.Value.name);