using System;
using System.Collections.Generic;
using System.Reflection;
using UnityEditor;
using UnityEditor.SceneManagement;
using UnityEngine;
using UObject = UnityEngine.Object;
namespace AlicizaX.EditorExtension.Editor
{
///
/// 通用表格绘制器
///
public sealed class GenericTableWindow : EditorWindow
{
///
/// 打开通用表格绘制器
///
/// 表格数据目标实例
/// 表格数据的字段名称
public static void OpenWindow(UObject target, string fieldName)
{
GenericTableWindow window = GetWindow();
window.titleContent.image = EditorGUIUtility.IconContent("ScriptableObject Icon").image;
window.titleContent.text = "Generic Table";
window.OnInit(target, fieldName);
}
private const int Border = 10;
private const int TitleHeight = 20;
private Dictionary _fieldInfos = new Dictionary();
private TableView