Passer au contenu principal
Version: bleeding-edge 🩸

🐛 Debug

Dessine des formes de débogage dans le monde.

🗿Static ClassClient Only🧑‍💻API Source

🗿 Static Functions

ReturnsNameDescription
DrawBoxDessine une boîte de débogage dans le monde
DrawCapsuleDraws a Debug capsule in the World
DrawCoordinateSystemDessine un système de coordonnées de débogage dans le monde
DrawCrosshairsDessine un réticule de débogage dans le monde
DrawCylinderDessine un cylindre de débogage dans le monde
DrawDirectionalArrowDessine une flèche directionnelle de débogage dans le monde
DrawLineDessine une ligne de débogage dans le monde
DrawPointDessine un point de débogage dans le monde
DrawSphereDessine une sphère de débogage dans le monde
DrawStringDessine 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

TypeParameterDefaultDescription
Vectorlocation Required parameter World location
Vectorextent Required parameter Half size of the box on each axis
Rotatorrotation Required parameter World rotation
Colorcolor Required parameter The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?0
Line thickness

Moderate

DrawCapsule

Draws a Debug capsule in the World
Debug.DrawCapsule(center, half_height, radius, rotation, color?, life_time?, thickness?)

Parameters

TypeParameterDefaultDescription
Vectorcenter Required parameter Center of the capsule
floathalf_height Required parameter Half of the capsule height
floatradius Required parameter Radius of the capsule
Rotatorrotation Required parameter Rotation of the capsule
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the debug drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorlocation Required parameter World location
Rotatorrotation Required parameter World rotation
floatsize?100
Size of the drawing
floatlife_time?5
Seconds before the drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorlocation Required parameter World location
Rotatorrotation Required parameter World rotation
floatsize?100
Size of the drawing
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorstart_location Required parameter World start location
Vectorend_location Required parameter World end location
floatradius Required parameter Radius
integersegments Required parameter Number of segments used to draw it, more segments look smoother
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorstart_location Required parameter World start location
Vectorend_location Required parameter World end location
floatarrow_size?100
Size of the arrow head
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorstart_position Required parameter World start location
Vectorend_position Required parameter World end location
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?0
Line thickness

Moderate

DrawPoint

Dessine un point de débogage dans le monde
Debug.DrawPoint(start_position, color?, life_time?, size?)

Parameters

TypeParameterDefaultDescription
Vectorstart_position Required parameter World start location
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatsize?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

TypeParameterDefaultDescription
Vectorstart_location Required parameter World start location
floatradius Required parameter Radius
integersegments Required parameter Number of segments used to draw it, more segments look smoother
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
floatthickness?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

TypeParameterDefaultDescription
Vectorlocation Required parameter World location
stringtext Required parameter The text to draw
Colorcolor?Color.RED
The color to use
floatlife_time?5
Seconds before the drawing disappears
booleandraw_shadow?false
Whether to draw a shadow behind the text
floatfont_scale?1
Scale of the text

🚀 Events

This class doesn't have own events.