Skip to content

Commit

Permalink
updated assertion check when configuring the start scene (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
StephenHodgson committed Jan 15, 2021
1 parent beb24f6 commit bc70618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Editor/MixedRealityToolkitInspector.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<SceneAsset>(activeScene.path);
}
}
Expand Down

0 comments on commit bc70618

Please sign in to comment.