using UnityEditor; using UnityEngine.RMGUI; namespace RMGUI.GraphView.Demo { class NodalViewWindow : EditorWindow { [MenuItem("Window/GraphView Demo/Nodal UI")] public static void ShowWindow() { GetWindow(); } void OnEnable() { var view = new NodesContentView { name = "theView", dataSource = CreateInstance() }; view.StretchToParentSize(); rootVisualContainer.AddChild(view); } void OnDisable() { rootVisualContainer.ClearChildren(); } } }