class MAGES::DebugDraw

Overview

Debug draw utility. More…

class DebugDraw: public MonoBehaviour
{
public:
    // classes

    class DebugItemBuffer;

    // methods

    static void SolidBox(
        Vector3 pos,
        Color color,
        Quaternion? rot = null,
        Vector3? scale = null,
        float time = 0.0f,
        string label = null
    );

    static void WireBox(
        Vector3 pos,
        Color color,
        Quaternion? rot = null,
        Vector3? scale = null,
        float time = 0.0f,
        string label = null
    );

    static void Arrow(
        Vector3 pos,
        Vector3 direction,
        Color color,
        float length = 0.2f,
        float time = 0.0f,
        string label = null
    );

    static void ArrowLine(
        Vector3 begin,
        Vector3 end,
        Color color,
        float time = 0.0f,
        string label = null
    );

    static void Line(
        Vector3 begin,
        Vector3 end,
        Color color,
        float time = 0.0f,
        string label = null
    );
};

Detailed Documentation

Debug draw utility.

Methods

static void SolidBox(
    Vector3 pos,
    Color color,
    Quaternion? rot = null,
    Vector3? scale = null,
    float time = 0.0f,
    string label = null
)

Draws a solid box.

Parameters:

pos

The position of the box.

color

The color of the box.

rot

The rotation of the box.

scale

The scale of the box.

time

Time to persist.

label

Label of the box.

static void WireBox(
    Vector3 pos,
    Color color,
    Quaternion? rot = null,
    Vector3? scale = null,
    float time = 0.0f,
    string label = null
)

Draws a wireframe box.

Parameters:

pos

The position of the box.

color

The color of the box.

rot

The rotation of the box.

scale

The scale of the box.

time

Time to persist.

label

Label of the box.

static void Arrow(
    Vector3 pos,
    Vector3 direction,
    Color color,
    float length = 0.2f,
    float time = 0.0f,
    string label = null
)

Draws an arrow.

Parameters:

pos

The origin of the arrow.

direction

The direction of the arrow.

color

The color of the arrow.

length

The extent of the arrow.

time

Time to persist.

label

The label of the arrow.

static void ArrowLine(
    Vector3 begin,
    Vector3 end,
    Color color,
    float time = 0.0f,
    string label = null
)

Draws an arrow line.

Parameters:

begin

The start of the arrow.

end

The end of the arrow.

color

The color of the arrow.

time

Time to persist.

label

The label of the arrow.

static void Line(
    Vector3 begin,
    Vector3 end,
    Color color,
    float time = 0.0f,
    string label = null
)

Draws a line.

Parameters:

begin

The start of the line.

end

The end of the line.

color

The color of the line.

time

Time to persist.

label

The label of the line.