using UnityEngine; using UnityEditor; using System.Collections.Generic; public class NodeEditor : EditorWindow { private Node root; [MenuItem("Window/Node Editor")] static void Open() { EditorWindow.GetWindow<NodeEditor>(); } protected void OnGUI() { if (this.root == null) { this.Init(); } BeginWindows(); this.root.Draw(); EndWindows(); } private void Init() { // 木構造の初期化 this.root = new Node(0, ne
