Library/PackageCache/com.unity.memoryprofiler@0.2.3-preview.2/Editor/MemoryProfilerWindow.cs(1031,17): error CS0103: The name ‘EditoUtilityCompatibilityHelper’ does not exist in the current context
The contents of EditorUtilityCompatibilityHelper.cs are compiled-out because of:
#if !UNITY_2019_4_OR_NEWER
using System;
using UnityEngine.Internal;
namespace UnityEditor
{
internal static class EditoUtilityCompatibilityHelper
{
so this code doesn’t compile:
void TakeCapture()
{
if (EditorApplication.isCompiling)
{
Debug.LogError("Unable to snapshot while compilation is ongoing");
return;
}
if (EditoUtilityCompatibilityHelper.DisplayDialog(Content.HeapWarningWindowTitle, Content.HeapWarningWindowContent, Content.HeapWarningWindowOK, EditoUtilityCompatibilityHelper.DialogOptOutDecisionType.ForThisMachine, MemoryProfilerSettings.HeapWarningWindowOptOutKey))
{
this.StartCoroutine(DelayedSnapshotRoutine());
}
EditorGUIUtility.ExitGUI();
}