//Draw graph public override void DrawOverlayWindow() { if (showValues) { GUI.BringWindowToFront(-id - 1); Rect backgroundRect = new Rect(0, 0, overlayWindowRect.width, overlayWindowRect.height); backgroundRect.x += 2; backgroundRect.y += 2; backgroundRect.width -= 4; backgroundRect.height -= 4; //GUI.Box(backgroundBorderRect, "", "propertyField"); GUI.Box(backgroundRect, "", "box"); //Graph DrawGraphLines(); ControlPoints = CustomLayout.CurveGraph(ControlPoints, "Graph View"); ContextMenu(); DeletePoint(); //Highlight selected point if (selectedPoint != -1) { GUI.Box(selectionRect, "", "graphPointSelection"); } } }