DebugUtilities Class

Definition

C++
public ref class DebugUtilities abstract sealed
Inheritance
DebugUtilities

Fields

LogLevel

This helper defaults to showing all messages of information and above (i.e. including warnings and errors)

Methods

DebugAssert(Boolean, String)

Asserts a condition.

DebugAssert(Boolean)

Asserts a condition.

DebugLog(String)
Obsolete.

Logs a message.

DebugLogError(String)
Obsolete.

Logs an error message.

DebugLogWarning(String)
Obsolete.

Logs a warning message.

DrawBounds(Bounds, Color, Color)

Draws the minimum and maximum points of the given bounds

DrawPoint(Vector3, Color, Single)

Draws a point in the Scene window.

DrawPoint(Vector3, Quaternion, Color, Single)

Draws a point with a rotation in the Scene window.

Log(String)

Logs a message at the informational level.

LogError(String)

Logs an error message.

LogVerbose(String)

Logs the given message to the Unity console and player log if verbose logging is enabled.

LogVerboseFormat(String, Object[])

Formats and logs the given message to the Unity console and player log if verbose logging is enabled. Note that verbose logs do not include the callstack

LogWarning(String)

Logs a warning message.

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0