Skip to main content

Debug

Draws Debug shapes in the world.

🗿Static Class
This is a Static Class. Access it's methods directly with .. It's not possible to spawn new instances.
💂Authority
This static class can be accessed only on 🟧 Client side.

Static Functions​

ReturnsNameDescription
DrawBoxDraws a Debug box in the world
DrawCoordinateSystemDraws a Debug coordinate system in the world
DrawCrosshairsDraws a Debug crosshair in the world
DrawCylinderDraws a Debug cylinder in the world
DrawDirectionalArrowDraws a Debug directional arrow in the world
DrawLineDraws a Debug Line in the World
DrawPointDraws a Debug Point in the World
DrawSphereDraws a Debug sphere in the World
DrawStringDraws a Debug string in the world

DrawBox​

Draws a Debug box in the world

Debug.DrawBox(location, extent, rotation, color, life_time, thickness)
TypeParameterDefaultDescription
Vectorlocation
Vectorextent
Rotatorrotation
Colorcolor
floatlife_time
floatthickness

DrawCoordinateSystem​

Draws a Debug coordinate system in the world

Debug.DrawCoordinateSystem(location, rotation, size, life_time, thickness)
TypeParameterDefaultDescription
Vectorlocation
Rotatorrotation
floatsize
floatlife_time
floatthickness

DrawCrosshairs​

Draws a Debug crosshair in the world

Debug.DrawCrosshairs(location, rotation, size?, color?, life_time, thickness)
TypeParameterDefaultDescription
Vectorlocation
Rotatorrotation
floatsize?100
Colorcolor?Color.RED
floatlife_time
floatthickness

DrawCylinder​

Draws a Debug cylinder in the world

Debug.DrawCylinder(start_location, end_location, radius, segments, color?, life_time, thickness)
TypeParameterDefaultDescription
Vectorstart_location
Vectorend_location
floatradius
integersegments
Colorcolor?Color.RED
floatlife_time
floatthickness

DrawDirectionalArrow​

Draws a Debug directional arrow in the world

Debug.DrawDirectionalArrow(start_location, end_location, arrow_size?, color?, life_time, thickness)
TypeParameterDefaultDescription
Vectorstart_location
Vectorend_location
floatarrow_size?100
Colorcolor?Color.RED
floatlife_time
floatthickness

DrawLine​

Draws a Debug Line in the World

Debug.DrawLine(start_position, end_position, color?, life_time, thickness)
TypeParameterDefaultDescription
Vectorstart_position
Vectorend_position
Colorcolor?Color.RED
floatlife_time
floatthickness

DrawPoint​

Draws a Debug Point in the World

Debug.DrawPoint(start_position, color?, life_time, size)
TypeParameterDefaultDescription
Vectorstart_position
Colorcolor?Color.RED
floatlife_time
floatsize

DrawSphere​

Draws a Debug sphere in the World

Debug.DrawSphere(start_location, radius, segments, color?, life_time, thickness)
TypeParameterDefaultDescription
Vectorstart_location
floatradius
integersegments
Colorcolor?Color.RED
floatlife_time
floatthickness

DrawString​

Draws a Debug string in the world

Debug.DrawString(location, text, color?, life_time, draw_shadow, font_scale)
TypeParameterDefaultDescription
Vectorlocation
stringtext
Colorcolor?Color.RED
floatlife_time
booleandraw_shadow
floatfont_scale

Events​

This entity doesn't have own events.