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:

// On-screen message for 2 seconds, in yellow DebugScreen.Log("Hello, Unity!", 2f, Color.yellow); // Update a live stat every frame DebugScreen.Log($"Speed: {speed:0.0}", 0.1f, Color.cyan); // World-space shapes (position, duration, size, color) DebugDraw.Sphere(transform.position, 5f, 1f, Color.green); DebugDraw.Cube(new Vector3(0, 1, 0), new Vector3(0, 45f, 0), 4f, 1.2f, Color.blue); DebugDraw.Arrow(agent.position, dir, 2.5f, 1f, Color.red); DebugDraw.Text(target.position, "Target", 3f, 1f, Color.white);

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

  • Packagecom.dandev.unity-visual-debugging-utilities (v1.0.1)
  • Unity versionDeveloped with Unity 6000.3.12f1
  • NamespaceDandev.Unity_Visual_Debugging_Utilities
  • On-screen APIDebugScreen.Log(string label, float time, Color color)
  • World-space APIDebugDraw.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.