Struct CommandBuilder Extends IDisposable
Builder for drawing commands.
You can use this to queue many drawing commands. The commands will be queued for rendering when you call the Dispose method. It is recommended that you use the using statement which automatically calls the Dispose method.
// Create a new CommandBuilder
using (var draw = DrawingManager.GetBuilder()) {
// Use the exact same API as the global Draw class
draw.WireBox(Vector3.zero, Vector3.one);
}
Warning
You must call either Dispose or DiscardAndDispose when you are done with this object to avoid memory leaks.
Inner Types
Public Methods
Draws an arrow between two points with a head that varies with the length of the arrow.
Draws an arrowhead centered around a circle.
Disposes this command builder after the given job has completed.
Draws all lines until the next PopLineWidth with a given line width in pixels.
Public Static Methods
Public Variables
Can be set to render specifically to these cameras.
Public Static Variables
Private/Protected Members
Internal rendering command.