it seems like a dumb problem to have but I can’t work out how to scale the white (colorrect) dynamically to always be a white background to my text?
I seem to be adverse to anything GUI, godot or UMG
it seems like a dumb problem to have but I can’t work out how to scale the white (colorrect) dynamically to always be a white background to my text?
I seem to be adverse to anything GUI, godot or UMG
If you write text into a label, the label should size to fit the text content.
Taking this into account, you should put your color rect as a child of the label
You would then set the color rect’s anchor mode to “full rect”, so that it fills the size of its parent (which is the label, which has been automatically sized to fit the text)
Children usually are shown above their parents, so on the color rect you would have to toggle the “Show Behind Parent” property to make it work as though it is a background
Here is the final result from what I explained above
aah, I had it like this at one point but didn’t check the show behind parent, so the color hid the text. TY