From 69e73947d654ef512917a7ab44924afa311af740 Mon Sep 17 00:00:00 2001 From: Yusuke Furuta Date: Mon, 3 Jul 2023 09:12:19 +0900 Subject: [PATCH] Use LogError instead of Exception for Unity 2021.2 or earlier --- Editor/Scripts/Internal/GeospatialEditorHelper.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Editor/Scripts/Internal/GeospatialEditorHelper.cs b/Editor/Scripts/Internal/GeospatialEditorHelper.cs index c26e513..00d4d09 100644 --- a/Editor/Scripts/Internal/GeospatialEditorHelper.cs +++ b/Editor/Scripts/Internal/GeospatialEditorHelper.cs @@ -109,7 +109,10 @@ public static void OnToggle(bool toggleChecked) // disabled if they are present. } #else // Error state because this is an invalid version of Unity - throw new Exception("Geospatial Creator requires Unity 2021.3 or later."); + if (toggleChecked) + { + Debug.LogError("Geospatial Creator requires Unity 2021.3 or later."); + } #endif }