Hide the border's image without hidding the text block

Hi!

I have a Widget Blueprint with a button, a border and a text block. When I make the border hidden, the text block also disappears. I 'm using the border to show an image when the mouse cursor is over the button.

imagen

This is the button with the border and the text block.

How can I do it?

Thank you

Make the text a child of the button and not the border.
It’s nested in it’s hierarchy so it will be hidden with it.

How?

imagen

If I try to make the button to have two children, I get the above message.

And I can’t make the border children of the Text Block because I get the message: Widget can’t have children.

Thank you.

You can use an overlay if it does not except any more children

Though you should be able to have text and a border under a button. I’m not in unreal atm but I’ll try later on in the day.

1 Like

Buttons only accept a single child, you can’t have multiple children aside from placing them inside an overlay like you suggested

1 Like