Ir para o conteúdo principal
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.