※この記事で使っているUnityのバージョンは Unity5.2.1p3 です。 木構造の表示 まずは木構造を表示させるウィンドウ 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(); EndWindow
![【Unity】エディター拡張で木構造を表示させる - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/fe813543a442ed2b7217f1dd039eb7b6506b1f5f/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-412672c5f0600ab9a64263b751f1bc81.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTk3MiZoPTM3OCZ0eHQ9JUUzJTgwJTkwVW5pdHklRTMlODAlOTElRTMlODIlQTglRTMlODMlODclRTMlODIlQTMlRTMlODIlQkYlRTMlODMlQkMlRTYlOEIlQTElRTUlQkMlQjUlRTMlODElQTclRTYlOUMlQTglRTYlQTclOEIlRTklODAlQTAlRTMlODIlOTIlRTglQTElQTglRTclQTQlQkElRTMlODElOTUlRTMlODElOUIlRTMlODIlOEImdHh0LWFsaWduPWxlZnQlMkN0b3AmdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT01NiZzPWVhMjBjN2JlNjY0ZjNhNjM2ZDliMWU0MTIwZjhjYjc4%26mark-x%3D142%26mark-y%3D57%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZoPTc2Jnc9NzcwJnR4dD0lNDByLW5ndG0mdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPTQzNzQ3NmVlMDRmMjQ3NmQ4MGNmNzg4Y2NhZDE3M2I5%26blend-x%3D142%26blend-y%3D486%26blend-mode%3Dnormal%26s%3Dda87af2d8035ea98cf13fc2b448d7b96)