#if ENABLE_ADDRESSABLE_PROFILER && UNITY_2022_2_OR_NEWER using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; namespace UnityEditor.AddressableAssets.Diagnostics { internal class AddressablesProfilerDetailsTreeView { private const string k_ColumnVisibilityKeyPrefix = "com.unity.addressables.profiler.treeviewcolumn."; public AddressablesProfilerDetailsTreeView(TreeViewPane rootView) { m_TreeView = rootView.TreeView; if (m_TreeView == null) { Debug.LogError("Could not find treeView for ProfilerDetails view"); return; } for (int i = 0; i < 32; ++i) m_LabelCache.Enqueue(new Label()); m_LastColumnVisibles = new bool[m_TreeView.columns.Count]; for (int i=0; i m_TreeView.sortColumnDescriptions; private readonly MultiColumnTreeView m_TreeView; private int? m_SelectedId = null; private bool[] m_LastColumnVisibles; private readonly Queue m_VisualsCache = new Queue(32); private readonly Queue