Download

UMG Remove from parent doesn't work?

Hi there.

I’ve seen that since 4.6 Remove from Viewport was renamed to Remove from Parent. However, it doesn’t seem to do a thing for me?
Did I set up wrong or something? It’d be nice if you could give me a hand in this.

647bef16d19585cb0dc640d8ad91bb0b2438cb37.jpeg

The Add to Viewport part works perfectly, but then the Remove from Parent part does nothing. I also checked that that part is being ran in-game so that shouldn’t be the problem.

why dont you do the branch stuff before you create the widget? and then you hide and show it instead of creating it over and over again

Okay, sorry, I know why it didn’t work. When I pressed enter to hide the menu I was creating another widget and removing it at the same time. Thus, I saw no practical effect.
Sorry for the trouble!