protected override void Initialize(BaseGraphView graphView) { this.graphView = graphView as SIGGraphView; imguiContainer = new IMGUIContainer(); imguiContainer.onGUIHandler = OnGUI; content.Add(imguiContainer); }
protected override void InitializeWindow(BaseGraph graph) { // Set the window title titleContent = new GUIContent("SIG Graph"); // Here you can use the default BaseGraphView or a custom one (see section below) var graphView = new SIGGraphView(this); // Add toolbar graphView.Add(new SIGToolbarView(graphView)); // Add minimap // graphView.Add(new MiniMapView(graphView)); // graphView.Add(new GridBackground()); rootView.Add(graphView); }