Skip to content

LineDraw ​

即時ライン描画。呼んだフレームだけ GameView に描かれる。毎フレーム呼んで使う

使い方と前提条件 · C# API一覧

型の情報 ​

  • 名前空間:NEMEngine
  • 型:NEMEngine.LineDraw(Class)

DrawAABB ​

csharp
public static void DrawAABB(Vector3 min, Vector3 max, Color4 color, float thickness = 0.05)

軸平行ボックス

引数型既定値
minNEMEngine.Vector3必須
maxNEMEngine.Vector3必須
colorNEMEngine.Color4必須
thicknessfloat0.05

DrawArrow ​

csharp
public static void DrawArrow(Vector3 pos, float length, Quaternion rotation, Color4 color, float thickness = 0.05)

方向矢印

引数型既定値
posNEMEngine.Vector3必須
lengthfloat必須
rotationNEMEngine.Quaternion必須
colorNEMEngine.Color4必須
thicknessfloat0.05

DrawAxis ​

csharp
public static void DrawAxis(Vector3 pos, Quaternion rotation, float length = 1, float thickness = 0.05)

XYZ軸、色はX赤Y青Z緑で固定

引数型既定値
posNEMEngine.Vector3必須
rotationNEMEngine.Quaternion必須
lengthfloat1
thicknessfloat0.05

DrawCircle ​

csharp
public static void DrawCircle(Vector2 center, float radius, Color4 color, int division = 16, float thickness = 0.05)

2D円、XY平面

引数型既定値
centerNEMEngine.Vector2必須
radiusfloat必須
colorNEMEngine.Color4必須
divisionint16
thicknessfloat0.05

DrawCone ​

csharp
public static void DrawCone(Vector3 center, float baseRadius, float topRadius, float height, Quaternion rotation, Color4 color, int division = 8, float thickness = 0.05)

円錐台

引数型既定値
centerNEMEngine.Vector3必須
baseRadiusfloat必須
topRadiusfloat必須
heightfloat必須
rotationNEMEngine.Quaternion必須
colorNEMEngine.Color4必須
divisionint8
thicknessfloat0.05

DrawHemisphere ​

csharp
public static void DrawHemisphere(Vector3 center, float radius, Quaternion rotation, Color4 color, int division = 8, float thickness = 0.05)

半球

引数型既定値
centerNEMEngine.Vector3必須
radiusfloat必須
rotationNEMEngine.Quaternion必須
colorNEMEngine.Color4必須
divisionint8
thicknessfloat0.05

DrawLine ​

csharp
public static void DrawLine(Vector3 start, Vector3 end, Color4 color, float thickness = 1)

2点を結ぶ3Dライン

引数型既定値
startNEMEngine.Vector3必須
endNEMEngine.Vector3必須
colorNEMEngine.Color4必須
thicknessfloat1

DrawLine2D ​

csharp
public static void DrawLine2D(Vector2 start, Vector2 end, Color4 color, float thickness = 1)

2点を結ぶ2Dライン。座標は2Dワールド基準

引数型既定値
startNEMEngine.Vector2必須
endNEMEngine.Vector2必須
colorNEMEngine.Color4必須
thicknessfloat1

DrawOBB ​

csharp
public static void DrawOBB(Vector3 center, Vector3 size, Quaternion rotation, Color4 color, float thickness = 0.05)

有向ボックス、sizeは各軸の半径

引数型既定値
centerNEMEngine.Vector3必須
sizeNEMEngine.Vector3必須
rotationNEMEngine.Quaternion必須
colorNEMEngine.Color4必須
thicknessfloat0.05

DrawPolyline ​

csharp
public static void DrawPolyline(ReadOnlySpan<LinePoint> points, bool loop = false, bool is2D = false)

任意のポリラインを描く。loopで始点と終点をつなぐ

引数型既定値
pointsSystem.ReadOnlySpan<NEMEngine.LinePoint>必須
loopboolFalse
is2DboolFalse

DrawRect ​

csharp
public static void DrawRect(Vector2 center, Vector2 size, Color4 color, float rotationDegrees = 0, float thickness = 0.05)

2D矩形、rotationDegreesはZ回転

引数型既定値
centerNEMEngine.Vector2必須
sizeNEMEngine.Vector2必須
colorNEMEngine.Color4必須
rotationDegreesfloat0
thicknessfloat0.05

DrawSphere ​

csharp
public static void DrawSphere(Vector3 center, float radius, Color4 color, int division = 8, float thickness = 0.05)

組み込みのワイヤーフレーム球を描く

引数型既定値
centerNEMEngine.Vector3必須
radiusfloat必須
colorNEMEngine.Color4必須
divisionint8
thicknessfloat0.05

実行時の扱い ​

Nativeと接続する操作は、Scriptが実行される有効なWorld内で使用します。破棄したGameObjectやComponentへのアクセスは避けてください。設定Snapshotは取得・編集・反映を1組で扱います。

現行版マニュアル · 8ea58ba2 · 2026-10-28確認