Menu Widget Won't Go Away 4.10

Hi everyone,

I followed countless tutorials online about making menus. I was informed that they changed the name from “Remove from Viewport” or something like that to “Remove from parent”. I have it lined up, and when I hit play, the widget appears like it should, but when I click the widget, it does not go away. What am I missing? I followed the Unreal tutorial as well… Please help.

Hello,

Could you please provide a screenshot of your blueprint? I’d like to see how you have it set up.

Hello and thanks for the help,

This is what I have for the button.

Does this event fires? Easiest way to check it is by using something like print string. You probably have a problem with layer indexes(ZOrder).

I’m having the exact same problem, did you ever manage to get this fixed?

Yes. I made a simple script that just prints ‘Hello’ when you click it and it does, I can use the ‘Remove All Widgets’ node on the level blueprint to make them go away, but of course that removes every widget on the screen. I wonder if remove from parent is broken? (Or I’m just not using them right…)

Just did another test and it seems to work now when I put in the open level and remove from parent?? That’s weird… I’ll let you know if something else happens. Thanks for the help

Try putting the remove from parent after opening the level. That’s what I did.

im in the same situation of LucasKFilms
but i tried to put open level before remove from parent… didint work.

I started from the puzzle template
in mobile mod

Try putting this on the level blueprint.

I put the remove from parent after doing the things that it has to do, seems to be working now, but it wasn’t before. Make sure to compile your scripts each time you change something before trying it in the viewer…

Yeah, that seems to work. Maybe also compiling the scripts before running it?

I put the remove from parent after doing the things that it has to do, seems to be working now, but it wasn’t before. Make sure to compile your scripts each time you change something before trying it in the viewer…

I put the remove from parent after doing the things that it has to do, seems to be working now, but it wasn’t before. Make sure to compile your scripts each time you change something before trying it in the viewer…

Hello,

I had the same problem for a while, but when I made the menu smaller, I saw the level was already open. I only followed the [UE4 documentation][1].

The problem: I hit ‘Play’, the level opens, and in the ‘Level Blueprint’, the ‘Event BeginPlay’ creates the menu widget. On the menu, I hit Play, the ‘Open level’ starts the level again, which creates the menu again.

Solution: Make another level only for the menu, which opens the original playing level.

Easier solution: Don’t use ‘Open level’.

I’m sure others know better solutions, but if someone else has this problem too and can’t find any answer, maybe my solution helps…

[1]: