From bc7061881f5f2bfae4d436756428070def6d0080 Mon Sep 17 00:00:00 2001 From: Stephen Hodgson Date: Fri, 15 Jan 2021 13:22:14 -0500 Subject: [PATCH] updated assertion check when configuring the start scene (#761) --- Editor/MixedRealityToolkitInspector.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Editor/MixedRealityToolkitInspector.cs b/Editor/MixedRealityToolkitInspector.cs index deeb5789d..835361d56 100644 --- a/Editor/MixedRealityToolkitInspector.cs +++ b/Editor/MixedRealityToolkitInspector.cs @@ -195,7 +195,7 @@ public static void CreateMixedRealityToolkitGameObject() void SetStartScene() { var activeScene = SceneManager.GetActiveScene(); - Debug.Assert(!string.IsNullOrEmpty(activeScene.path), "Configured Scene must be saved in order to set it as the Start Scene!\n" + "Please save your scene and set it as the Start Scene in the XRTK preferences."); + Debug.Assert(!string.IsNullOrWhiteSpace(activeScene.path), "Configured Scene must be saved in order to set it as the Start Scene!\n" + "Please save your scene and set it as the Start Scene in the XRTK preferences."); MixedRealityPreferences.StartSceneAsset = AssetDatabase.LoadAssetAtPath(activeScene.path); } }