Class Draw

Public

Methods for easily drawing things in the editor and in standalone games.

Public Static Methods

(center, start, end, [color])

Draws an arc between two points.

Draws an arrow between two points.

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

Draws an arrowhead at a point.

(origin, direction, offset, [width], [color])

Draws an arrowhead centered around a circle.

(p0, p1, p2, p3, [color])

Draws a cubic bezier curve.

(..., [color])

Draws a...

Draws a circle.

Draws a circle in the XY plane.

Draws a circle in the XZ plane.

(position, [size], [color])

Draws a 3D cross.

(position, [size], [color])

Draws a cross in the XY plane.

(position, [size], [color])

Draws a cross in the XZ plane.

(a, b, dash, gap, [color])

Draws a dashed line between two points.

(points, dash, gap, [color])

Draws a dashed line through a sequence of points.

(transform)
(camera)
(position, text, ..., [color])

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

(position, rotation, text, size, [alignment], [color])

Draws a label in 3D space.

(a, b, [color])

Draws a line between two points.

(center, ..., size, [color])

Draws a plane and a visualization of its normal.

(points, [cycle], [color])

Draws lines through a sequence of points.

()

Pops a color from the stack.

Pops a duration scope from the stack.

Pops a line width scope from the stack.

Pops a matrix from the stack.

Pops a persist scope from the stack.

(color)

Draws everything until the next PopColor with the given color.

(duration)

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

(pixels, automaticJoins=true)

Draws all lines until the next PopLineWidth with a given line width in pixels.

(matrix)

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

(duration)

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

(matrix)

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

(..., [color])

Draws a ray...

(center, start, end, [color])

Draws a solid arc between two points.

(..., [color])

Draws a solid box.

Draws a disc.

Draws a disc in the XY plane.

Draws a disc in the XZ plane.

(...)

Draws a solid mesh...

(center, ..., size, [color])

Draws a solid plane.

(rect, [color])

Draws a solid rectangle.

(a, b, c, [color])

Draws a solid triangle.

Draws a circle outline around a sphere.

(..., [color])

Draws the outline of a box...

Draws a capsule with a ...

Draws a cylinder.

(center, rotation, cells, totalSize, [color])

Draws a grid of lines.

Draws a hexagon outline.

(..., [color])

Draws a wire mesh.

Draws a pentagon outline.

(center, ..., size, [color])

Draws a wire plane.

Draws a regular polygon outline.

(..., [color])

Draws a rectangle outline.

(center, size, [color])

Draws a rectangle outline.

Draws a wire sphere.

(..., [color])

Draws a triangle outline.

(color)
(duration)
(pixels, automaticJoins=true)
(matrix)

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
xy

Wrapper for drawing in the XY plane.

Public Static
xz

Wrapper for drawing in the XZ plane.

Public Static

builder
Internal Static
ingame_builder
Internal Static