Struct CommandBuilder Extends IDisposable

Public

Inner Types

Public Methods

Bezier (p0, p1, p2, p3)

Draws a cubic bezier curve.

Public
Bezier (p0, p1, p2, p3, color)

Draws a cubic bezier curve.

Public
Circle (center, normal, radius)

Draws a circle in the XY plane.

Public
Circle (center, normal, radius, color)

Draws a circle in the XY plane.

Public
CircleXY (center, radius, color)

Draws a circle in the XY plane.

Public
CircleXY (center, radius, startAngle=0f, endAngle=…)

Draws a circle in the XY plane.

Public
CircleXY (center, radius, startAngle, endAngle, color)

Draws a circle in the XY plane.

Public
CircleXZ (center, radius, color)

Draws a circle in the XZ plane.

Public
CircleXZ (center, radius, startAngle=0f, endAngle=…)

Draws a circle in the XZ plane.

Public
CircleXZ (center, radius, startAngle, endAngle, color)

Draws a circle in the XZ plane.

Public
CrossXY (position, color)

Draws a cross in the XY plane.

Public
CrossXY (position, size=1)

Draws a cross in the XY plane.

Public
CrossXY (position, size, color)

Draws a cross in the XY plane.

Public
CrossXZ (position, size=1)

Draws a cross in the XZ plane.

Public
CrossXZ (position, color)

Draws a cross in the XZ plane.

Public
CrossXZ (position, size, color)

Draws a cross in the XZ plane.

Public
DiscardAndDispose ()
Public
Dispose ()
Public
InLocalSpace (transform)

Scope to draw multiple things relative to a transform object.

Public
Line (a, b)

Draws a line between two points.

Public
Line (a, b, color)

Draws a line between two points.

Public
Polyline (points, color)

Draws lines through a sequence of points.

Public
Polyline (points, color)

Draws lines through a sequence of points.

Public
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public
Polyline (points, color)
Public
Polyline (points, color)
Public
Polyline (points, cycle, color)
Public
Polyline (points, cycle, color)

Draws lines through a sequence of points.

Public
Polyline (points, cycle, color)
Public
Polyline (points, cycle, color)

Draws lines through a sequence of points.

Public
PopColor ()
Public
PopMatrix ()
Public
PopPersist ()
Public
Preallocate (size)
Public
PushColor (color)
Public
PushMatrix (matrix)
Public
PushPersist (duration)
Public
PushSetMatrix (matrix)
Public
Ray (origin, direction)

Draws a ray starting at a point and going in the given direction.

Public
Ray (ray, length)

Draws a ray with a given length.

Public
Ray (origin, direction, color)

Draws a ray starting at a point and going in the given direction.

Public
Ray (ray, length, color)

Draws a ray with a given length.

Public
SolidBox (bounds)

Draws a solid box.

Public
SolidBox (bounds, color)

Draws a solid box.

Public
SolidBox (center, size)

Draws a solid box.

Public
SolidBox (center, size, color)

Draws a solid box.

Public
SolidBox (center, rotation, size)

Draws a solid box.

Public
SolidBox (center, rotation, size, color)

Draws a solid box.

Public
SolidMesh (vertices, triangles, colors)

Draws a solid mesh with the given vertices.

Public
SolidMesh (vertices, triangles, colors, vertexCount, indexCount)

Draws a solid mesh with the given vertices.

Public
WireBox (bounds)

Draws the outline of a box.

Public
WireBox (bounds, color)

Draws the outline of a box.

Public
WireBox (center, size)

Draws the outline of an axis aligned box.

Public
WireBox (center, size, color)

Draws the outline of an axis aligned box.

Public
WireBox (center, rotation, size)

Draws the outline of a box.

Public
WireBox (center, rotation, size, color)

Draws the outline of a box.

Public
WireCapsule (bottom, top, radius)

Draws a capsule.

Public
WireCapsule (bottom, top, radius, color)

Draws a capsule.

Public
WireCapsule (position, up, height, radius)

Draws a capsule.

Public
WireCapsule (position, up, height, radius, color)

Draws a capsule.

Public
WireCylinder (bottom, top, radius)

Draws a cylinder.

Public
WireCylinder (bottom, top, radius, color)

Draws a cylinder.

Public
WireCylinder (position, up, height, radius)

Draws a cylinder.

Public
WireCylinder (position, up, height, radius, color)

Draws a cylinder.

Public
WireSphere (position, radius)

Draws a wire sphere.

Public
WireSphere (position, radius, color)

Draws a wire sphere.

Public
WithColor (color)

Scope to draw multiple things with the same color.

Public
WithDuration (duration)

Scope to draw multiple things for a longer period of time.

Public
WithMatrix (matrix)

Scope to draw multiple things with an implicit matrix transformation.

Public

Public Static Methods

AssertNotRendering ()
Public Static
EvaluateCubicBezier (p0, p1, p2, p3, t)

Returns a point on a cubic bezier curve.

Public Static

Public Static Variables

XZtoXYPlaneMatrix
Public Static Readonly
XZtoYZPlaneMatrix
Public Static Readonly

Private/Protected Members

Add< T > (value)
Private
AssignMeshData (mesh, bounds, vertices, triangles)
Private Static
buffer
Private
Build (gizmos, buffers, camera, dependency)
Package Static
BuildMesh (gizmos, meshes, inputBuffers)
Package Static
CameraDepthToPixelSize (camera)

Helper for determining how large a pixel is at a given depth.

Private Static
Command
Private
CommandBuilder (gizmos, hasher, redrawScope, isGizmos)
Package
ConvertExistingDataToNativeArray< T > (data)
Private Static
gizmos
Private
MeshLayout
Private Static Readonly
Reserve (additionalSpace)
Private
Reserve< A > ()
Private
Reserve< A, B > ()
Private
Reserve< A, B, C > ()
Private
samplerConvert
Private Static Readonly
samplerLayout
Private Static Readonly
samplerSubmesh
Private Static Readonly
samplerUpdate
Private Static Readonly
threadIndex
Private
uniqueID
Private