From f538bf842fed6c247d0ca179af4819643e53ab4b Mon Sep 17 00:00:00 2001 From: kaikoga Date: Mon, 9 Oct 2023 15:55:27 +0900 Subject: [PATCH] chore: fix SceneManagement editor using declaration on unity 2021 (#483) --- Editor/Inspector/InspectorCommon.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Editor/Inspector/InspectorCommon.cs b/Editor/Inspector/InspectorCommon.cs index 65cbef3c..2afd0000 100644 --- a/Editor/Inspector/InspectorCommon.cs +++ b/Editor/Inspector/InspectorCommon.cs @@ -1,5 +1,11 @@ using UnityEditor; + +#if UNITY_2021_2_OR_NEWER +using UnityEditor.SceneManagement; +#else using UnityEditor.Experimental.SceneManagement; +#endif + using UnityEngine; namespace nadena.dev.modular_avatar.core.editor