以下の内容はhttps://baba-s.hatenablog.com/entry/2022/06/16/090000より取得しました。


【Unity】デバッグ用にギズモを簡単に描画できる「Debug Draw API for Unity」紹介

はじめに

「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 );
    }
}



以上の内容はhttps://baba-s.hatenablog.com/entry/2022/06/16/090000より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14