I set up some logic on the player character to check the active widget index. If it's 0, then toggle the pause widget.
Then on the pause menu, if the player presses 'ESC', it will set the index to 0 if it isn't already.
This way, if the player is in the audio menu, 'ESC' will take them back to the first menu instead of closing.
So if a user presses 'ESC' it opens this menu. and if they hit it again, it closes it.
If the player clicks 'Audio', it opens the 'Audio' Menu
The way it works in editor is that if the player is in 'Audio' and presses 'ESC', it will take them back to the first pause menu instead of closing the menu
but in packaged builds, it only closes the menu
Any idea why this is?