🐛 Debug
Draws Debug shapes in the world.
🗿 Static Functions
| Returns | Name | Description | |
|---|---|---|---|
DrawBox | Draws a Debug box in the world | ||
DrawCapsule | Draws a Debug capsule in the World | ||
DrawCoordinateSystem | Draws a Debug coordinate system in the world | ||
DrawCrosshairs | Draws a Debug crosshair in the world | ||
DrawCylinder | Draws a Debug cylinder in the world | ||
DrawDirectionalArrow | Draws a Debug directional arrow in the world | ||
DrawLine | Draws a Debug Line in the World | ||
DrawPoint | Draws a Debug Point in the World | ||
DrawSphere | Draws a Debug sphere in the World | ||
DrawString | Draws 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
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | location | Required parameter | World location |
| Vector | extent | Required parameter | Half size of the box on each axis |
| Rotator | rotation | Required parameter | World rotation |
| Color | color | Required parameter | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawCapsule
Draws a Debug capsule in the World
Debug.DrawCapsule(center, half_height, radius, rotation, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | center | Required parameter | Center of the capsule |
| float | half_height | Required parameter | Half of the capsule height |
| float | radius | Required parameter | Radius of the capsule |
| Rotator | rotation | Required parameter | Rotation of the capsule |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the debug drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawCoordinateSystem
Draws a Debug coordinate system in the world
Debug.DrawCoordinateSystem(location, rotation, size?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | location | Required parameter | World location |
| Rotator | rotation | Required parameter | World rotation |
| float | size? | 100 | Size of the drawing |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawCrosshairs
Draws a Debug crosshair in the world
Debug.DrawCrosshairs(location, rotation, size?, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | location | Required parameter | World location |
| Rotator | rotation | Required parameter | World rotation |
| float | size? | 100 | Size of the drawing |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawCylinder
Draws a Debug cylinder in the world
Debug.DrawCylinder(start_location, end_location, radius, segments, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | start_location | Required parameter | World start location |
| Vector | end_location | Required parameter | World end location |
| float | radius | Required parameter | Radius |
| integer | segments | Required parameter | Number of segments used to draw it, more segments look smoother |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawDirectionalArrow
Draws a Debug directional arrow in the world
Debug.DrawDirectionalArrow(start_location, end_location, arrow_size?, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | start_location | Required parameter | World start location |
| Vector | end_location | Required parameter | World end location |
| float | arrow_size? | 100 | Size of the arrow head |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawLine
Draws a Debug Line in the World
Debug.DrawLine(start_position, end_position, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | start_position | Required parameter | World start location |
| Vector | end_position | Required parameter | World end location |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawPoint
Draws a Debug Point in the World
Debug.DrawPoint(start_position, color?, life_time?, size?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | start_position | Required parameter | World start location |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | size? | 10 | Size of the drawing |
Moderate

DrawSphere
Draws a Debug sphere in the World
Debug.DrawSphere(start_location, radius, segments, color?, life_time?, thickness?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | start_location | Required parameter | World start location |
| float | radius | Required parameter | Radius |
| integer | segments | Required parameter | Number of segments used to draw it, more segments look smoother |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| float | thickness? | 0 | Line thickness |
Moderate

DrawString
Draws a Debug string in the world
Debug.DrawString(location, text, color?, life_time?, draw_shadow?, font_scale?)
Parameters
| Type | Parameter | Default | Description |
|---|---|---|---|
| Vector | location | Required parameter | World location |
| string | text | Required parameter | The text to draw |
| Color | color? | Color.RED | The color to use |
| float | life_time? | 5 | Seconds before the drawing disappears |
| boolean | draw_shadow? | false | Whether to draw a shadow behind the text |
| float | font_scale? | 1 | Scale of the text |
🚀 Events
This class doesn't have own events.
