EasyRuntimeGizmo

📌 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
🧩 3. Usage Guide
Option 1: Using the Editor Inspector
Sample Scene: 1_Inspector
Add GizmoSystem to the scene as the global gizmo controller:

Add GizmoTarget to any GameObject to define individual gizmos:

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);
Option 3: Use GizmoDebug – Global Static Interface
Sample Scene: 3_DebugDraw (see GizmoDebugTest.cs)
GizmoDebug.DrawLine(Vector3.zero, Vector3.forward * 3f, Color.yellow);
🧠 Tips
✨ Experiment freely — you'll find the style and workflow that suits you best.

评论
发表评论