はじめに
「Debug Draw API for Unity」を Unity プロジェクトに導入することで
デバッグ用にギズモを簡単に描画できるようになります
使用例
using Oddworm.Framework; using UnityEngine; public class Example : MonoBehaviour { private void Update() { DbgDraw.WireCube( new Vector3( -1, 1, 0 ), Quaternion.identity, Vector3.one, Color.red ); DbgDraw.WireSphere( new Vector3( 1, 1, 0 ), Quaternion.identity, Vector3.one, Color.green ); DbgDraw.Cube( new Vector3( -1, -1, 0 ), Quaternion.identity, Vector3.one, Color.blue ); DbgDraw.Sphere( new Vector3( 1, -1, 0 ), Quaternion.identity, Vector3.one, Color.magenta ); } }