/// <summary> /// Draw the specified text using the given transformation matrix, /// in the given color. Does nothing unless SAGO_DEBUG is set. /// </summary> public static void Draw(string text, Matrix4x4 mat, Color color) { #if SAGO_DEBUG DebugTextRenderer.Draw(text, mat, color); #endif }
/// <summary> /// Draw the specified text at worldPosition, in the given color, and /// at the given world size. Does nothing unless SAGO_DEBUG is set. /// </summary> public static void Draw(string text, Vector3 worldPosition, Color color, float size = 1f) { #if SAGO_DEBUG DebugTextRenderer.Draw(text, worldPosition, color, size); #endif }