Class DebugUtilities
Inherited Members
Namespace: Microsoft.MixedReality.Toolkit.Utilities
Assembly: cs.temp.dll.dll
Syntax
public static class DebugUtilities
Methods
DebugAssert(Boolean)
Asserts a condition.
Declaration
public static void DebugAssert(bool condition)
Parameters
Type | Name | Description |
---|---|---|
Boolean | condition | The condition that is expected to be true. |
DebugAssert(Boolean, String)
Asserts a condition.
Declaration
public static void DebugAssert(bool condition, string message)
Parameters
Type | Name | Description |
---|---|---|
Boolean | condition | The condition that is expected to be true. |
String | message | The message to display if the condition evaluates to false. |
DebugLog(String)
Logs a message.
Declaration
public static void DebugLog(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log. |
DebugLogError(String)
Logs an error message.
Declaration
public static void DebugLogError(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log. |
DebugLogWarning(String)
Logs a warning message.
Declaration
public static void DebugLogWarning(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The message to log. |
DrawBounds(Bounds, Color, Color)
Draws the minimum and maximum points of the given bounds
Declaration
public static void DrawBounds(Bounds bounds, Color minColor, Color maxColor)
Parameters
Type | Name | Description |
---|---|---|
Bounds | bounds | |
Color | minColor | |
Color | maxColor |
DrawPoint(Vector3, Color, Single)
Draws a point in the Scene window.
Declaration
public static void DrawPoint(Vector3 point, Color color, float size = 0.05F)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | point | |
Color | color | |
Single | size |
DrawPoint(Vector3, Quaternion, Color, Single)
Draws a point with a rotation in the Scene window.
Declaration
public static void DrawPoint(Vector3 point, Quaternion rotation, Color color, float size = 0.05F)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | point | |
Quaternion | rotation | |
Color | color | |
Single | size |