Api Sandbox DebugOverlaySystem
class

DebugOverlaySystem

public sealed class DebugOverlaySystem : GameObjectSystem<T>

Constructors

DebugOverlaySystem(Scene scene)

Methods

Void Capsule(Capsule capsule, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False, Int32 segments = 12)

Draw a wireframe capsule, simple cylinder with 2 hemispheres.

Void Cylinder(Capsule capsule, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False, Int32 segments = 12)

Draw a wireframe cylinder, like a capsule without the hemispheres, showing all sides.

Void Box(Vector3 position, Vector3 size, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a box

Void Box(BBox box, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a box

Void GameObject(GameObject go, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False, Boolean castShadows = True, Material materialOveride = null)

Draw a GameObject in the world

Void Normal(Vector3 position, Vector3 direction, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a line

Void Line(Line line, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a line

Void Line(Vector3 from, Vector3 to, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a line

Void Line(IEnumerable<Vector3> points, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)
Void Model(Model model, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False, Boolean castShadows = True, Material materialOveride = null, Transform[] localBoneTransforms = null)

Draw model in the world

Void Sphere(Sphere sphere, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a sphere

Void Text(Vector3 position, String text, Single size = 32, TextFlag flags = 132, Color color = null, Single duration = 0, Boolean overlay = False)

Draw text in the world

Void Text(Vector3 position, Scope scope, TextFlag flags = 132, Single duration = 0, Boolean overlay = False)

Draw text in the world

Void Texture(Vector2 pixelPosition, Texture texture, Vector2 size, Single duration = 0)
Void Frustum(Frustum frustum, Color color = null, Single duration = 0, Transform transform = null, Boolean overlay = False)

Draw a frustum

Void ScreenText(Vector2 pixelPosition, String text, Single size = 14, TextFlag flags = 132, Color color = null, Single duration = 0)

Draw text on the screen

Void ScreenText(Vector2 pixelPosition, Scope textBlock, TextFlag flags = 132, Single duration = 0)

Draw text on the screen

Void Texture(Texture texture, Vector2 position, Color? color = null, Single duration = 0)
Void Texture(Texture texture, Rect screenRect, Color? color = null, Single duration = 0)
Void ScreenTexture(Vector3 worldPos, Texture texture, Vector2 size, Single duration = 0)
Void Trace(SceneTraceResult trace, Single duration = 0, Boolean overlay = False)

Draws the result of a physics trace, showing the start and end points, the hit location and normal (if any), and the traced shape (ray, sphere, box, capsule, cylinder) at both the start and end positions.

Assembly: Sandbox.Engine Namespace: Sandbox Full Name: Sandbox.DebugOverlaySystem