https://blog.csdn.net/e295166319/article/details/52370575 需要两个类:树节点类和界面实现类 1:树节点类(TreeNode) using UnityEngine; using System.Collections; using System.Collections.Generic; public class TreeNode { public enum TreeNodeType { Item, Switch } public string