void OnGUI() { //Start getting Events curEvent = Event.current; HandleEvents(); //Draw the Toolbar DrawToolBar(); //Make sure we have the views before proceeding if (graphView == null) { graphView = new EF_Graph_View(); return; } scrollPos = GUILayout.BeginScrollView(scrollPos, true, true); GUILayout.Label("", GUILayout.Width(10000f), GUILayout.Height(10000f)); graphView.DrawView(); GUILayout.EndScrollView(); Repaint(); }
static void CreateViews() { graphView = new EF_Graph_View(); }