Esempio n. 1
0
    protected override void Initialize(BaseGraphView graphView)
    {
        this.graphView = graphView as SIGGraphView;

        imguiContainer = new IMGUIContainer();
        imguiContainer.onGUIHandler = OnGUI;

        content.Add(imguiContainer);
    }
Esempio n. 2
0
    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);
    }