Add scale parameter to DebugDraw text drawing to rescale text without reducing font size

This commit is contained in:
Wojtek Figat
2023-04-29 12:09:36 +02:00
parent 7c0d1ab977
commit ba319d8499
2 changed files with 10 additions and 3 deletions

View File

@@ -590,7 +590,8 @@ API_CLASS(Static) class FLAXENGINE_API DebugDraw
/// <param name="color">The color.</param>
/// <param name="size">The font size.</param>
/// <param name="duration">The duration (in seconds). Use 0 to draw it only once.</param>
API_FUNCTION() static void DrawText(const StringView& text, const Vector3& position, const Color& color, int32 size = 32, float duration = 0.0f);
/// <param name="scale">The text scale.</param>
API_FUNCTION() static void DrawText(const StringView& text, const Vector3& position, const Color& color, int32 size = 32, float duration = 0.0f, float scale = 1.0f);
/// <summary>
/// Draws the text (3D).