Draw debug lines, rays, boxes, spheres and world-space text at runtime, in builds and not just the editor. One static API with per-call color, duration and depth testing.Debug Draw puts gizmo-style visual debugging where you actually need it: in your running game, including standalone builds.One static API, callable from anywhere:Draw.Line(a, b, color, duration, depthTest)Draw.Ray(origin, direction, color, duration, depthTest)Draw.Box(center, size, rotation, color, duration, depthTest)Draw.Sphere(center, radius, color, duration, depthTest)Draw.Text(position, text, color, duration)Every call takes a color, a duration (0 draws for a single frame) and a depth-test flag, so a shape is either occluded by your scene geometry or drawn on top of it as an overlay.Works in builds, not just the editor. Most debug drawing in Unity is editor-only, which is exactly where it is least useful. Debug Draw renders in the player, so you can diagnose behaviour in a real build.Built-in and URP. Shapes are batched into a line mesh and submitted through the standard renderer path, so they render in the Built-in Render Pipeline and in URP. Both are verified in actual player builds, not just in the editor. The package ships its own shader, so nothing it needs is stripped out of your build.No setup. There is no prefab to place and nothing to initialise. Call the API and the renderer creates itself on first use, then retires each shape as its duration expires. The line mesh is rebuilt from reused buffers, so drawing does not generate garbage.Includes a sample scene and documentation.Supported: Unity 6.0 LTS and up.Free, from OccaSoftware.One static API: Draw.Line, Draw.Ray, Draw.Box, Draw.Sphere and Draw.TextPer-call color, duration and depth testing (occluded by geometry, or overlay on top)Renders in player builds, not only in the editorBuilt-in Render Pipeline and URP, both verified in real player buildsShips its own line shader, so nothing it needs is stripped from your buildAllocation-free drawing: the line mesh is rebuilt from reused buffersNo prefab and no initialisation; the renderer creates itself on first useSample scene and documentation includedSupported: Unity 6.0 LTS and upThe C# source and the included shader in this package were authored with AI assistance (Anthropic's Claude), directed and reviewed by a human developer at OccaSoftware. Everything was compiled and exercised before release: the sample scene was run in both a Built-in Render Pipeline and a Universal Render Pipeline standalone player build, and the rendering was visually confirmed in each. No AI-generated art, audio, or third-party content is included. The package contains only source code, one shader, a sample scene and documentation.


