I’m setting up a pause menu, when i press the pause key it works fine, but pressing it again resumes the game but doesn’t remove the pause menu widget but instead adds another widget on top on the current one, so if i press P repeatedly it somehow creates multiple widgets on top of each other. Why is this not working?
It’s because you need to put the widget reference in a variable.
On the False branch, you’re getting a null reference, because the create node isn’t running.
Do you by chance get the ‘access none’ error?
There was no error, the “remove from parent” works when I bind it to a different key. In any case I managed to get it working by getting the bool directly from “is game paused” instead. Not sure why since either way the bool value should be the same. But thanks for the response.