Class Draw

Public

Public Static Methods

Arrow (from, to)

Draws an arrow between two points.

Public Static
Arrow (from, to, color)

Draws an arrow between two points.

Public Static
Arrow (from, to, up, headSize)

Draws an arrow between two points.

Public Static
Arrow (from, to, up, headSize, color)

Draws an arrow between two points.

Public Static
Arrowhead (center, direction, radius)

Draws an arrowhead at a point.

Public Static
Arrowhead (center, direction, radius, color)

Draws an arrowhead at a point.

Public Static
Arrowhead (center, direction, up, radius)

Draws an arrowhead at a point.

Public Static
Arrowhead (center, direction, up, radius, color)

Draws an arrowhead at a point.

Public Static
ArrowheadArc (origin, direction, offset, color)

Draws an arrowhead centered around a circle.

Public Static
ArrowheadArc (origin, direction, offset, width=60)

Draws an arrowhead centered around a circle.

Public Static
ArrowheadArc (origin, direction, offset, width, color)

Draws an arrowhead centered around a circle.

Public Static
ArrowRelativeSizeHead (from, to, up, headFraction)

Draws an arrow between two points with a head that varies with the length of the arrow.

Public Static
ArrowRelativeSizeHead (from, to, up, headFraction, color)

Draws an arrow between two points with a head that varies with the length of the arrow.

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

Draws a cubic bezier curve.

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

Draws a cubic bezier curve.

Public Static
CatmullRom (points)

Draws a smooth curve through a list of points.

Public Static
CatmullRom (points, color)

Draws a smooth curve through a list of points.

Public Static
CatmullRom (p0, p1, p2, p3)

Draws a centripetal catmull rom spline.

Public Static
CatmullRom (p0, p1, p2, p3, color)

Draws a centripetal catmull rom spline.

Public Static
Circle (center, normal, radius)

Draws a circle.

Public Static
Circle (center, normal, radius, color)

Draws a circle.

Public Static
CircleXY (center, radius, color)

Draws a circle in the XY plane.

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

Draws a circle in the XY plane.

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

Draws a circle in the XY plane.

Public Static
CircleXZ (center, radius, color)

Draws a circle in the XZ plane.

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

Draws a circle in the XZ plane.

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

Draws a circle in the XZ plane.

Public Static
Cross (position, size=1)

Draws a cross.

Public Static
Cross (position, color)

Draws a cross.

Public Static
Cross (position, size, color)

Draws a cross.

Public Static
CrossXY (position, color)

Draws a cross in the XY plane.

Public Static
CrossXY (position, size=1)

Draws a cross in the XY plane.

Public Static
CrossXY (position, size, color)

Draws a cross in the XY plane.

Public Static
CrossXZ (position, size=1)

Draws a cross in the XZ plane.

Public Static
CrossXZ (position, color)

Draws a cross in the XZ plane.

Public Static
CrossXZ (position, size, color)

Draws a cross in the XZ plane.

Public Static
InLocalSpace (transform)

Scope to draw multiple things relative to a transform object.

Public Static
InScreenSpace (camera)

Scope to draw multiple things in screen space of a camera.

Public Static
Label2D (position, text, sizeInPixels=14)

Draws a label in 3D space aligned with the camera.

Public Static
Label2D (position, text, color)

Draws a label in 3D space aligned with the camera.

Public Static
Label2D (position, text, sizeInPixels, color)

Draws a label in 3D space aligned with the camera.

Public Static
Label2D (position, text, sizeInPixels, alignment)

Draws a label in 3D space aligned with the camera.

Public Static
Label2D (position, text, sizeInPixels, alignment, color)

Draws a label in 3D space aligned with the camera.

Public Static
Line (a, b)

Draws a line between two points.

Public Static
Line (a, b)

Draws a line between two points.

Public Static
Line (a, b, color)

Draws a line between two points.

Public Static
Line (a, b, color)

Draws a line between two points.

Public Static
Polyline (points, color)
Public Static
Polyline (points, cycle=…)
Public Static
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public Static
Polyline (points, color)
Public Static
Polyline (points, cycle=…)
Public Static
Polyline (points, cycle=…)

Draws lines through a sequence of points.

Public Static
Polyline (points, color)

Draws lines through a sequence of points.

Public Static
Polyline (points, color)

Draws lines through a sequence of points.

Public Static
Polyline (points, cycle, color)

Draws lines through a sequence of points.

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

Draws lines through a sequence of points.

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

Pops a color from the stack.

Public Static
PopMatrix ()

Pops a matrix from the stack.

Public Static
PopPersist ()

Pops a persist scope from the stack.

Public Static
PushColor (color)

Draws everything until the next PopColor with the given color.

Public Static
PushMatrix (matrix)

Multiply all coordinates until the next PopMatrix with the given matrix.

Public Static
PushPersist (duration)

Draws everything until the next PopPersist for a number of seconds.

Public Static
PushSetMatrix (matrix)

Multiply all coordinates until the next PopMatrix with the given matrix.

Public Static
Ray (origin, direction)

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

Public Static
Ray (ray, length)

Draws a ray with a given length.

Public Static
Ray (ray, length, color)

Draws a ray with a given length.

Public Static
Ray (origin, direction, color)

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

Public Static
SolidBox (bounds)

Draws a solid box.

Public Static
SolidBox (bounds, color)

Draws a solid box.

Public Static
SolidBox (center, size)

Draws a solid box.

Public Static
SolidBox (center, size, color)

Draws a solid box.

Public Static
SolidBox (center, rotation, size)

Draws a solid box.

Public Static
SolidBox (center, rotation, size, color)

Draws a solid box.

Public Static
SolidMesh (vertices, triangles, colors)

Draws a solid mesh with the given vertices.

Public Static
SolidMesh (vertices, triangles, colors, vertexCount, indexCount)
Public Static
WireBox (bounds)

Draws the outline of a box.

Public Static
WireBox (bounds, color)

Draws the outline of a box.

Public Static
WireBox (center, size)

Draws the outline of an axis aligned box.

Public Static
WireBox (center, size, color)

Draws the outline of an axis aligned box.

Public Static
WireBox (center, rotation, size)

Draws the outline of a box.

Public Static
WireBox (center, rotation, size, color)

Draws the outline of a box.

Public Static
WireCapsule (bottom, top, radius)

Draws a capsule.

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

Draws a capsule.

Public Static
WireCapsule (bottom, top, radius, color)

Draws a capsule.

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

Draws a capsule.

Public Static
WireCylinder (bottom, top, radius)

Draws a cylinder.

Public Static
WireCylinder (bottom, top, radius, color)

Draws a cylinder.

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

Draws a cylinder.

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

Draws a cylinder.

Public Static
WireGrid (center, rotation, cells, totalSize)

Draws a grid of lines.

Public Static
WireGrid (center, rotation, cells, totalSize, color)

Draws a grid of lines.

Public Static
WireHexagon (center, rotation, radius)

Draws a hexagon outline.

Public Static
WireHexagon (center, rotation, radius, color)

Draws a hexagon outline.

Public Static
WirePentagon (center, rotation, radius)

Draws a pentagon outline.

Public Static
WirePentagon (center, rotation, radius, color)

Draws a pentagon outline.

Public Static
WirePolygon (center, vertices, rotation, radius)

Draws a regular polygon outline.

Public Static
WirePolygon (center, vertices, rotation, radius, color)

Draws a regular polygon outline.

Public Static
WireRectangle (rect)

Draws a rectangle outline.

Public Static
WireRectangle (rect, color)

Draws a rectangle outline.

Public Static
WireRectangle (center, rotation, size)

Draws a rectangle outline.

Public Static
WireRectangle (center, rotation, size, color)

Draws a rectangle outline.

Public Static
WireRectangleXZ (center, size)

Draws a rectangle outline.

Public Static
WireRectangleXZ (center, size, color)

Draws a rectangle outline.

Public Static
WireSphere (position, radius)

Draws a wire sphere.

Public Static
WireSphere (position, radius, color)

Draws a wire sphere.

Public Static
WireTriangle (center, rotation, radius)

Draws a triangle outline.

Public Static
WireTriangle (a, b, c)

Draws a triangle outline.

Public Static
WireTriangle (center, rotation, radius, color)

Draws a triangle outline.

Public Static
WireTriangle (a, b, c, color)

Draws a triangle outline.

Public Static
WithColor (color)

Scope to draw multiple things with the same color.

Public Static
WithDuration (duration)

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

Public Static
WithMatrix (matrix)

Scope to draw multiple things with an implicit matrix transformation.

Public Static

Public Static Variables

editor

Draws items in the editor if gizmos are enabled.

Public Static
ingame

Draws items in the editor and in standalone games, even if gizmos are disabled.

Public Static

Private/Protected Members

builder
Package Static
ingame_builder
Package Static