void
DashedPolyline
(
)
Draws a dashed line through a sequence of points.
Draw.DashedPolyline(points, 0.1f, 0.1f, color);
WarningAn individual line segment is drawn for each dash. This means that performance may suffer if you make the dash + gap distance too small. But for most use cases the performance is nothing to worry about.
If you have a different collection type, or you do not have the points in a collection at all, then you can use the PolylineWithSymbol struct directly.
using (Draw.WithColor(color)) {
var dash = 0.1f;
var gap = 0.1f;
var p = new CommandBuilder.PolylineWithSymbol(CommandBuilder.SymbolDecoration.None, gap, 0, dash + gap);
for (int i = 0; i < points.Count; i++) {
p.MoveTo(ref Draw.editor, points[i]);
}
}