Debug

Contains helper functions that help you debug your code. Please note that for performance reasons, drawing rays and lines is only supported when launching the game in test mode.

Static members

Member

Description

isTestMode

Returns true if the game has been launched from the Unity Editor via the -testcontentmod parameter.

Static methods

Method

Description

DrawLine(from, to, color)

DrawLine(from, to, color, duration)

DrawLine(from, to, color, duration, localToWorldMatrix)

DrawPath(vertices, color)

DrawPath(vertices, color, duration)

DrawPath(vertices, color, duration, localToWorldMatrix)

DrawRay(from, direction, color)

DrawRay(from, direction, color, duration)

DrawRay(from, direction, color, duration, localToWorldMatrix)

Details

class Debug
static const bool isTestMode

Returns true if the game has been launched from the Unity Editor via the -testcontentmod parameter.

static void DrawLine(Vector3 from, Vector3 to, Color color)
static void DrawLine(Vector3 from, Vector3 to, Color color, float duration)
static void DrawLine(Vector3 from, Vector3 to, Color color, float duration, Matrix4x4 localToWorldMatrix)
static void DrawPath(array<Vector3> vertices, Color color)
static void DrawPath(array<Vector3> vertices, Color color, float duration)
static void DrawPath(array<Vector3> vertices, Color color, float duration, Matrix4x4 localToWorldMatrix)
static void DrawRay(Vector3 from, Vector3 direction, Color color)
static void DrawRay(Vector3 from, Vector3 direction, Color color, float duration)
static void DrawRay(Vector3 from, Vector3 direction, Color color, float duration, Matrix4x4 localToWorldMatrix)