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.
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.