Unreal-style debug drawing, in Unity
Visual Debugging Utilities brings Unreal Engine's beloved debug helpers to Unity. If you've ever missed AddOnScreenDebugMessage or DrawDebugSphere, this package gives you the same quick, throwaway visualizations for gameplay logic, AI, physics, and more.
Two systems cover most needs. DebugScreen prints on-screen HUD messages with a duration and colour — perfect for live stats or one-off warnings. DebugDraw renders world-space shapes — spheres, cubes, arrows, and text — at any position for a set number of seconds.
There's zero setup. The utilities auto-initialize as singletons on first use and persist across scenes via DontDestroyOnLoad, so you can call them from anywhere — Update loops, coroutines, gameplay code — without wiring anything into your scene. Shapes render on top of the scene, so they stay visible even when occluded by geometry. It works in the editor and in builds, and runs on URP out of the box.
Quick start
Add the namespace and call the static methods from anywhere:
Coming from Unreal?
- AddOnScreenDebugMessage
DebugScreen.Log(...)— on-screen HUD messages. - DrawDebugSphere
DebugDraw.Sphere(...)— world-space sphere. - DrawDebugBox
DebugDraw.Cube(...)— world-space cube, with an optional rotation overload. - DrawDebugDirectionalArrow
DebugDraw.Arrow(...)— world-space arrow. - DrawDebugString
DebugDraw.Text(...)— world-space text label.
Features
- On-screen HUD messages
DebugScreen.Log(text, seconds, color)prints to the screen in the editor or in a build. - World-space shapes Draw spheres, cubes, arrows, and world-space text at any position for a set duration.
- Rotated shapes The Cube overload accepts Euler rotation for oriented boxes.
- Always-on-top rendering Shapes stay visible even behind walls and other geometry.
- Zero setup Auto-initializing singletons — no prefabs to place — that persist across scenes.
- Editor & build support The same calls work in play mode and in shipped builds.
- URP-ready Works with URP out of the box; Built-in / HDRP with a one-line change.
- Editor testers included Try the on-screen and world APIs without writing gameplay code.
Technical details
- Package
com.dandev.unity-visual-debugging-utilities(v1.0.1) - Unity versionDeveloped with Unity 6000.3.12f1
- Namespace
Dandev.Unity_Visual_Debugging_Utilities - On-screen API
DebugScreen.Log(string label, float time, Color color) - World-space API
DebugDraw.Sphere / Cube / Arrow / Text(position, duration, size, color) - SetupNone — auto-initializing singletons, persist via
DontDestroyOnLoad - RenderingShapes draw on top of the scene; URP out of the box, Built-in / HDRP with a directive change
- AssembliesSingle asmdef with editor testers alongside runtime code
This package is in active development and its API may change before release. AI coding assistants were used to help write and refactor the source code; all code was reviewed and tested by the developer. The package contains no AI-generated art, audio, or other assets.