Skip to main content
Version: latest - a1.148.0 โš–๏ธ

๐Ÿ› Debug

Draws Debug shapes in the world.

๐Ÿ—ฟStatic ClassClient Only๐Ÿง‘โ€๐Ÿ’ปAPI Source

๐Ÿ—ฟย 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

Moderate

DrawBoxโ€‹

Draws a Debug box in the world
Debug.DrawBox(location, extent, rotation, color, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorlocation Required parameter No description provided
Vectorextent Required parameter No description provided
Rotatorrotation Required parameter No description provided
Colorcolor Required parameter No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawCoordinateSystemโ€‹

Draws a Debug coordinate system in the world
Debug.DrawCoordinateSystem(location, rotation, size?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorlocation Required parameter No description provided
Rotatorrotation Required parameter No description provided
floatsize?100
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawCrosshairsโ€‹

Draws a Debug crosshair in the world
Debug.DrawCrosshairs(location, rotation, size?, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorlocation Required parameter No description provided
Rotatorrotation Required parameter No description provided
floatsize?100
No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawCylinderโ€‹

Draws a Debug cylinder in the world
Debug.DrawCylinder(start_location, end_location, radius, segments, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorstart_location Required parameter No description provided
Vectorend_location Required parameter No description provided
floatradius Required parameter No description provided
integersegments Required parameter No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawDirectionalArrowโ€‹

Draws a Debug directional arrow in the world
Debug.DrawDirectionalArrow(start_location, end_location, arrow_size?, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorstart_location Required parameter No description provided
Vectorend_location Required parameter No description provided
floatarrow_size?100
No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawLineโ€‹

Draws a Debug Line in the World
Debug.DrawLine(start_position, end_position, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorstart_position Required parameter No description provided
Vectorend_position Required parameter No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawPointโ€‹

Draws a Debug Point in the World
Debug.DrawPoint(start_position, color?, life_time?, size?)

Parameters

TypeParameterDefaultDescription
Vectorstart_position Required parameter No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatsize?10
No description provided

Moderate

DrawSphereโ€‹

Draws a Debug sphere in the World
Debug.DrawSphere(start_location, radius, segments, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorstart_location Required parameter No description provided
floatradius Required parameter No description provided
integersegments Required parameter No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
floatthickness?0
No description provided

Moderate

DrawStringโ€‹

Draws a Debug string in the world
Debug.DrawString(location, text, color?, life_time?, draw_shadow?, font_scale?)

Parameters

TypeParameterDefaultDescription
Vectorlocation Required parameter No description provided
stringtext Required parameter No description provided
Colorcolor?Color.RED
No description provided
floatlife_time?5
No description provided
booleandraw_shadow?false
No description provided
floatfont_scale?1
No description provided

๐Ÿš€ย Eventsโ€‹

This class doesn't have own events.