diff --git a/Editor/Scripts/HeapExplorerWindow.cs b/Editor/Scripts/HeapExplorerWindow.cs index 0798273..f7a18cb 100644 --- a/Editor/Scripts/HeapExplorerWindow.cs +++ b/Editor/Scripts/HeapExplorerWindow.cs @@ -9,7 +9,11 @@ using UnityEditor; using System; using System.Threading; +#if UNITY_2022_2_OR_NEWER +using Unity.Profiling.Memory; +#else using UnityEngine.Profiling.Memory.Experimental; +#endif namespace HeapExplorer {