API ReferenceSandbox
public sealed class Sandbox.DebugOverlaySystem : Sandbox.GameObjectSystem<T>
Constructors
Showing 1 constructors
public DebugOverlaySystem(Sandbox.Scene scene)
No results match this filter.
Methods
Showing 21 methods
public void Capsule(Capsule capsule, Color color = null, float duration = 0, Transform transform = null, bool overlay = False, int segments = 12)
Draw a wireframe capsule, simple cylinder with 2 hemispheres.
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: Falsesegments: Default: 12
public void Cylinder(Capsule capsule, Color color = null, float duration = 0, Transform transform = null, bool overlay = False, int segments = 12)
Draw a wireframe cylinder, like a capsule without the hemispheres, showing all sides.
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: Falsesegments: Default: 12
public void Frustum(Sandbox.Frustum frustum, Color color = null, float duration = 0, Transform transform = null, bool overlay = False)
Draw a frustum
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: False
public void GameObject(Sandbox.GameObject go, Color color = null, float duration = 0, Transform transform = null, bool overlay = False, bool castShadows = True, Sandbox.Material materialOveride = null)
Draw a GameObject in the world
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: FalsecastShadows: Default: TruematerialOveride: Default: null
public void Model(Sandbox.Model model, Color color = null, float duration = 0, Transform transform = null, bool overlay = False, bool castShadows = True, Sandbox.Material materialOveride = null, Transform[] localBoneTransforms = null)
Draw model in the world
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: FalsecastShadows: Default: TruematerialOveride: Default: nulllocalBoneTransforms: Default: null
public void Normal(Vector3 position, Vector3 direction, Color color = null, float duration = 0, Transform transform = null, bool overlay = False)
Draw a line
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: False
public void ScreenTexture(Vector3 worldPos, Sandbox.Texture texture, Vector2 size, float duration = 0)
Parameters
duration: Default: 0
public void Sphere(Sandbox.Sphere sphere, Color color = null, float duration = 0, Transform transform = null, bool overlay = False)
Draw a sphere
Parameters
color: Default: nullduration: Default: 0transform: Default: nulloverlay: Default: False
public void Trace(Sandbox.SceneTraceResult trace, float duration = 0, bool 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.
Parameters
duration: Default: 0overlay: Default: False
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Engine |
| Doc ID | T:Sandbox.DebugOverlaySystem |