Widget won't disappear

Hello,
I created a small UI widget with two buttons. Play and Exit.
when play is clicked to open a level. and with connecting it with “Remove from parent” node. It’s supposed to disappear from the viewport… well… it won’t :confused:
I searched for the problem but other solutions did not work. what am I missing?
I looked [here but i don’t know why it’s not working with me…

thanks


Have you run the loop in the Other Post?

1 Like

Try putting a 0 second delay between the Remove From Parent, and the Open Level. – Sounds weird, but its possible that when you do Open Level - Level Blocking starts, freezing to the last frame, not rendering the updated frame with the removed UMG widget. Adding the delay will give it just enough to render the next frame.

See if that helps at all!

-Peace

Hello , Yes I did, and it didn’t work with me, I’ll try to specify the event maybe… because when I hit play, it’s supposed to disappear and start the game

Hello Peter, I did as you said. It somehow worked,
I added a delay of 1 second between “remove from parent” and “open level”
when I clicked play, only the button “exit” disappeared for 1 second and after one second it appeared again… that might help finding what’s the problem

after the delay, they both disappeared for 1 second and after one second they appeared again!

I created an empty map, opened the empty map (level blueprint) and edited it as the picture you attached and problem is solved.
thank you

Glad it is solved .

How are you adding the UMG Widget to the Player Controller?

hello Peter, I solved the problem after creating a level only for the UMG.
takes me from the empty level to my level, problem was solved doing this.

The widget is in the level blueprint, starts when even begin play, that’s how I added it