From e287dc91c51109cf7ed3056c82580b0e5c1a020b Mon Sep 17 00:00:00 2001 From: Laicasaane Date: Wed, 29 Dec 2021 16:27:20 +0700 Subject: [PATCH] fix: change namespace of PrefabStageUtility in Unity 2021.2 (#61) --- Editor/AddressableImporter.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Editor/AddressableImporter.cs b/Editor/AddressableImporter.cs index ff2a3eb..2a8c75f 100644 --- a/Editor/AddressableImporter.cs +++ b/Editor/AddressableImporter.cs @@ -9,7 +9,12 @@ using System.IO; using System.Text.RegularExpressions; using UnityEditor.AddressableAssets.Settings.GroupSchemas; + +#if UNITY_2021_2_OR_NEWER +using UnityEditor.SceneManagement; +#else using UnityEditor.Experimental.SceneManagement; +#endif public class AddressableImporter : AssetPostprocessor {