🐛 Debug
Dessine des formes de débogage dans le monde.
🗿 Static Functions
| Returns | Name | Description | |
|---|---|---|---|
DrawBox | Dessine une boîte de débogage dans le monde | ||
DrawCapsule | Draws a Debug capsule in the World | ||
DrawCoordinateSystem | Dessine un système de coordonnées de débogage dans le monde | ||
DrawCrosshairs | Dessine un réticule de débogage dans le monde | ||
DrawCylinder | Dessine un cylindre de débogage dans le monde | ||
DrawDirectionalArrow | Dessine une flèche directionnelle de débogage dans le monde | ||
DrawLine | Dessine une ligne de débogage dans le monde | ||
DrawPoint | Dessine un point de débogage dans le monde | ||
DrawSphere | Dessine une sphère de débogage dans le monde | ||
DrawString | Dessine une chaîne de texte de débogage dans le monde |
Moderate

DrawBox
Dessine une boîte de débogage dans le monde
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
Dessine un système de coordonnées de débogage dans le monde
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
Dessine un réticule de débogage dans le monde
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
Dessine un cylindre de débogage dans le monde
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
Dessine une flèche directionnelle de débogage dans le monde
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
Dessine une ligne de débogage dans le monde
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
Dessine un point de débogage dans le monde
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
Dessine une sphère de débogage dans le monde
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
Dessine une chaîne de texte de débogage dans le monde
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.
