Pause Menu Problems - Quit Button (UE 4.27)

I am having trouble with one of my widgets. I’m trying to make a pause menu with “Resume Game,” “Abort Level” and “Quit Game” buttons. The first two work fine; but then, when I click on “Quit Game,” the window disappears. Then, after I stop running in Editor, I get an error message saying, "The widget ‘PauseQuit_C’ was already added to the screen. But, as shown on the included BP, the game is supposed to make a confirmation window appear if the player chooses “Quit Game.”

Edit: I’ve just noticed the BP for “Resume Game” is not included in the above link. But, it is in the actual program.

I’m not sure what the problem is, so any and all help is greatly appreciated.

Can you show the quit game code?

Here you go:

For some reason, though, “Create Pause Quit C Widget” is not what the node is called in the actual program.

Hmm, no idea, can’t tell… :-/

Maybe I should send you the program?

Ah, sorry, not enough time at the moment…

Maybe post again if you don’t get any more answers… :slight_smile:

Okay. I just hope I can get an answer, soon.

Did you try pinning “quit confirmation” to the target of “Add to viewport” node?
You’re getting error because it (pause widget) tries to add itself to the viewport. No target means self.

1 Like

I can’t believe I overlooked that! I’m glad you pointed that out, so thanks for that.

1 Like