If I have a static mesh, like a cube, in an actor blueprint with a text widget, how do I get the cube to grow or shrink with the text box as I enter text into it? In a widget for example if you use a text widget and a border together, the border will automatically adjust its size to fit the text in it. I want to do the same thing but with a cube instead.
Details are missing from the question.
- a widget lives in 2d space
- a box lives in 3d space
Could you please describe how this should translate?
Or are we talking about a widget component? This one is using a 3d quad and projects a widget onto it. Perhaps you could demonstrate what the end effect should look like.
Other than that, there is this:
https://answers.unrealengine.com/questions/1025533/how-to-get-bounding-box-of-text-3d.html
Yes my bad it’s a widget component, still a noob to UE I forget there’s a difference. I checked out the link you attached and that looks exactly like what I’m trying to do! Gonna try that out and hopefully all goes well!
Thank you so much for all the help by the way you’ve answered like every post I’ve made and always so quickly as well. Really appreciate it!
Do tell how it goes.
Never tried it with a widget component → could be a fun challenge or an impossible nightmare.