From ed5f00d165c41bda150cfb2f94f22041b5ea2244 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Sun, 11 Nov 2018 15:13:14 -0600 Subject: [PATCH] Add warning if we can't find scene object (#113) --- Mirror/Runtime/ClientScene.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Mirror/Runtime/ClientScene.cs b/Mirror/Runtime/ClientScene.cs index 869fb026f..95686a572 100644 --- a/Mirror/Runtime/ClientScene.cs +++ b/Mirror/Runtime/ClientScene.cs @@ -194,6 +194,10 @@ internal static NetworkIdentity SpawnSceneObject(uint sceneId) s_SpawnableObjects.Remove(sceneId); return foundId; } + else + { + Debug.LogWarning("Could not find scene object with sceneid:" + sceneId); + } return null; }