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