Struct PolylineWithSymbol
Helper for drawing a polyline with symbols at regular intervals.
var generator = new CommandBuilder.PolylineWithSymbol(CommandBuilder.SymbolDecoration.Circle, 0.2f, 0.0f, 0.47f);
generator.MoveTo(ref Draw.editor, new float3(-0.5f, 0, -0.5f));
generator.MoveTo(ref Draw.editor, new float3(0.5f, 0, 0.5f));
You can also draw a dashed line using this struct, but for common cases you can use the DashedPolyline helper function instead.
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]);
}
}
Public Methods
Create a new polyline with symbol generator.