17 lines
445 B
C#
17 lines
445 B
C#
using UnityEditor.IMGUI.Controls;
|
|
#if UNITY_6000_2_OR_NEWER
|
|
using TreeViewItem = UnityEditor.IMGUI.Controls.TreeViewItem<int>;
|
|
#endif
|
|
|
|
namespace Reflex.Editor.DebuggingWindow
|
|
{
|
|
internal class TreeViewItem<T> : TreeViewItem where T : TreeElement
|
|
{
|
|
public T Data { get; }
|
|
|
|
public TreeViewItem(int id, int depth, string displayName, T data) : base(id, depth, displayName)
|
|
{
|
|
Data = data;
|
|
}
|
|
}
|
|
} |