I use method Draw Text to draw some player’s name in screen.
But I need to get text size in order to make their do not out of screen.
How can get that size. does I need use UMG to do that
I use method Draw Text to draw some player’s name in screen.
But I need to get text size in order to make their do not out of screen.
How can get that size. does I need use UMG to do that
In my HUD class I use the method GetTextSize:
float textWidth, textHeight;
GetTextSize(TheString, textWidth, textHeight, TheFontType, TheFontScale);
It looks like it gives back the size of the text being draw in pixel size.
cool,thank u
Does this work for you guys? When I try that with default font in 4.8.3 then it always gives me a width and heigth of 0. Any ideas?