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.

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)