Get Text Render (World Size) & set to Cube

Hey Guys,
i’ve got a Text Render and a Cube behind that, how do i scale the cube the exact same size as the text?
I guess it should work with the World Size of the Text, but i have no idea how i can set it to the cube.
Thanks!

80fe9429bd6ba0c0dfedb81f5dbefbf6b78fe513.jpeg

So you want it to be a button to begin the game? Or just want the cube to be attached to the text?

I want the cube the same size as the Text.
I can get the Text Size with World Size, but i can’t set the size to the cube.

So I went and tried to see if I could find something. But between the cube and the text render component, the text is the only thing that has the world size settings which I’m sure you know. So in that case you would have to scale out the cube manually to fit the length and height of the text in the BP. But if you are going to have a material (for ex. bricks) then don’t scale the cube, just duplicate it and line them up. It’ll keep the detail, if you scale it out it’ll stretch the material and affect the look.

Old thread, I know, but I was just playing around trying to figure this out and google brought me here, so I figure others may find it.

TextRender has a GetTextLocalSize. I’m not sure which version it was added to, but I’m using it on 4.25. This is a big deal for people using UE for things other than games (broadcast AR/VS/XR), as we’re often delivering text content on our broadcasts.

2 Likes