Visual debugging in Scene View with Handles.label

Sometimes we need to see info about objects during playtime for debugging.

Lets say, we’re making a destructible environment and we need to debug the health of objects in the scene.

OnDrawGizmos() is a Unity callback, like Update() and FixedUpdate(), but only for the editor’s scene view. It isn’t called all the time, like update or fixedUpdate, but only when something “changes” in the scene.

The Handles class works much like an API for those arrow-style controls, allowing us to manage scaling, positioning, and similar adjustments directly in the scene view. While it’s possible to create custom handle tools, using the .Label() function is especially useful for quick debugging because it lets us display helpful information right on the object. In a website development context, this is similar to adding visual debug labels or overlays in the browser to better understand layout behavior, element positioning, and real-time data during the design process which work on entertainment or dating sites too like the sites where you can find virtual girlfriends like adriannaevesfree online.

And just like that, we have visual debug info in the scene.