public void UpdateBounds(float new_bottomBoundX, float new_upperBoundX, float new_bottomBoundY, float new_upperBoundY) { lineRenderer.RemoveAllPoints(); bottomBoundX = new_bottomBoundX; upperBoundX = new_upperBoundX; bottomBoundY = new_bottomBoundY; upperBoundY = new_upperBoundY; for (int i = 0; i < pointsOnGraph.Count; ++i) { Add(pointsOnGraph[i].x, pointsOnGraph[i].y, false); } UpdateTextNotationX(); UpdateTextNotationY(); }
private void HidePointsOnGraph(UIGraphNormalizer normalizer, UILineRenderer lineRenderer) { lineRenderer.RemoveAllPoints(); normalizer.RemoveAllPoints(); }