//快速进行的渲染 void OnPostRender() { if (!lineMaterial) { Debug.LogError("Please Assign a material on the inspector"); return; } if (pathLineDisplay) { for (int i = 0; i < lineDrawer.Count(); i++) { DrawStraightLine(lineDrawer.start_point[i], lineDrawer.end_point[i], lineDrawer.line_color[i]); } } if (originalPathDisplay && !Main.AutoRunning_flag && !Main.MDI_RunningFlag) { for (int i = 0; i < lineOriginalDrawer.Count(); i++) { DrawStraightLine(lineOriginalDrawer.start_point[i], lineOriginalDrawer.end_point[i], lineOriginalDrawer.line_color[i]); } } // DrawArcLine(new Vector3(-2f, 0, 0), new Vector3(2f, 0, 0), new Vector3(0, 0, 0), Mathf.PI, 2f, Color.yellow); }