/// <summary> /// /// </summary> /// <param name="points"></param> /// <param name="fillColor"></param> /// <param name="lineSize"></param> /// <param name="lineColor"></param> public void DrawPolygon(Vector2[] points, Color fillColor, float lineSize, Color lineColor) { PolygonMesh mesh = graphics.GetMeshFactory <PolygonMesh>(); mesh.points.Clear(); mesh.points.AddRange(points); mesh.fillColor = fillColor; mesh.lineWidth = lineSize; mesh.lineColor = lineColor; mesh.colors = null; graphics.color = fillColor; graphics.SetMeshDirty(); }