Struct PolylineWithSymbol

Public

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

MoveTo (draw, next)

Move to a new point.

PolylineWithSymbol (symbol, symbolSize, symbolPadding, symbolSpacing, reverseSymbols=…)

Create a new polyline with symbol generator.

Public Variables

odd
Public
offset
Public
prev
Public
reverseSymbols
Public Readonly
symbol
Public Readonly
symbolOffset
Public Readonly
symbolPadding
Public Readonly
symbolSize
Public Readonly
symbolSpacing
Public Readonly