DebugOverlay
Fields
This class has no fields.
Functions
AddEntityTextOverlay
DebugOverlay.AddEntityTextOverlay(EngineClient.GetLocalPlayer(), 1, 2.0, 255, 255, 255, 255, "test")
AddBoxOverlay
DebugOverlay.AddBoxOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), Vector.new(6, 7, 8), QAngle.new(9, 10, 11), 255, 255, 255, 255, 1.0)
AddSphereOverlay
DebugOverlay.AddSphereOverlay(Vector.new(1, 2, 3), 1.0, 10, 10, 255, 255, 255, 255, 1.0)
AddTriangleOverlay
DebugOverlay.AddTriangleOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), Vector.new(7, 8, 9), 255, 255, 255, 255, 1.0)
AddLineOverlay
DebugOverlay.AddLineOverlay(Vector.new(1, 2, 3), Vector.new(4, 5, 6), 255, 255, 255, 1.0)
AddScreenTextOverlay
DebugOverlay.AddScreenTextOverlay(100.0, 100.0, 4.0, 255, 255, 255, 255, "test")
AddSweptBoxOverlay
DebugOverlay.AddSweptBoxOverlay(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), Vector.new(5.0, 5.0, 5.0), Vector.new(10.0, 10.0, 1.0), 255, 255, 255, 255, 4.0)
AddGridOverlay
Name |
Type |
Description |
origin |
Vector |
- |
DebugOverlay.AddGridOverlay(Vector.new(1.0, 2.0, 3.0))
ScreenPosition
Name |
Type |
Description |
point |
Vector |
World position |
Return value
Name |
Type |
Description |
value |
Vector |
Screen position |
local localplayer = EntityList.GetLocalPlayer()
local screenpos = DebugOverlay.ScreenPosition(localplayer:GetRenderOrigin())
AddLineOverlayAlpha
DebugOverlay.AddLineOverlayAlpha(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), 255, 255, 255, 255, true, 4.0)
AddCapsuleOverlay
DebugOverlay.AddCapsuleOverlay(Vector.new(1.0, 2.0, 3.0), Vector.new(4.0, 5.0, 6.0), 4.0, 255, 255, 255, 127, 4.0)