Widget blueprint: Make text automatically scale and fill out within an area

I want to have a description text that automatically sizes to fit in a given space, and i want it to fill out all the space so it should really choose the perfect size. Ive tried around with scale boxes but they seem very weird. it downscales the text very hard for some reason and doesnt fill the space. Anyone got any idea what could be wrong here or how i could solve that issue?

If I’m understanding what you’re asking right, it should be a pretty easy fix. In your scale box, go to the stretching category and then swap the stretch field from “Scale to Fit” to “Fill”. Then in your text, scroll down to the wrapping category and hit the “Auto Wrap Text” flag. It should keep the size of your font the same as what you set it to.

Hope that helps!

Oh maybe i didnt explain it well enough, but thats not what i want. I want the entire text to resize (its font size) so it always perfectly fits the area no matter how how much text i put in. So basically if i start to have like a whole paragraph written in there it should start scaling down that texts font size so it again fills out the entire area. Im not sure if thats possible in Unreal Engine, im used to Unitys UI system and there i could always tick a checkbox “Auto Size” next to the fonts etting and then it would do exactly that automatically

Ah, got it. After messing around with it some more, it seems like it’s a little finicky when the text size will actually update. The best results I could get were by changing the stretch direction. I set it to down only and then set the max size of the font that I was wanting (this could be crazy big if you don’t want a practical limit.) It seems like it works properly scaling down, but it’s not the most intuitive when it scales back up.

Hope that helps! If not, you might have to get a reply from someone else haha.

Okay yeah that seems to work a little bit, still not perfect as im used to from Unity but definetly an improvement. Thanks :smiley: