EasyRuntimeGizmo

 

EasyRuntimeGizmo Debug Visualization Tool – User Manual

https://assetstore.unity.com/packages/slug/323941

Logo


📌 1. Overview

EasyRuntimeGizmo is a Unity plugin based on CommandBuffer that provides a unified and extensible runtime/editor debugging drawing tool.

It offers powerful alternatives to Debug.DrawLine() with greater flexibility, real-time rendering in both Scene and Game views, and supports a wide range of visual debug needs:

  • Visualize physics, paths, areas, or triggers

  • Debug AI behaviors and data structures

  • Develop and preview custom tools with visual helpers

  • Teach or demo geometric concepts


✨ 2. Features

FeatureDescription
✅ Multiple primitive shapesSupport for Line, Box, Arrow, Sphere, Cone, Bezier, etc.
✅ Local/World space toggleEach gizmo can choose between local or world coordinate space
✅ Global enable/disableOne-click to enable or disable all runtime gizmos
✅ Editor + Runtime supportWorks in both SceneView and GameView
✅ Customizable attributesSize, color, direction, etc. can be individually configured
✅ Low-drawcall batchingBuilt-in line/mesh batching system to reduce runtime draw calls
✅ Visual Editor toolsIntegrated editor panel for intuitive gizmo management

🧩 3. Usage Guide

Option 1: Using the Editor Inspector

Sample Scene: 1_Inspector

  1. Add GizmoSystem to the scene as the global gizmo controller:

    Add GizmoSystem

  2. Add GizmoTarget to any GameObject to define individual gizmos:

    Add GizmoTarget


Option 2: Call the GizmoDrawer API in Scripts

Sample Scene: 2_ScriptCall (see GizmoDrawerExample.cs)

GizmoDrawer drawer = new GizmoDrawer();
drawer.DrawBox(Vector3.zero, new Vector3(1,1,1), Color.cyan);

Script Draw


Option 3: Use GizmoDebug – Global Static Interface

Sample Scene: 3_DebugDraw (see GizmoDebugTest.cs)

GizmoDebug.DrawLine(Vector3.zero, Vector3.forward * 3f, Color.yellow);

GizmoDebug


🧠 Tips

✨ Experiment freely — you'll find the style and workflow that suits you best. Whether through the Inspector or scripts, EasyRuntimeGizmo gives you total flexibility and control.

评论

热门博文