#Menu Error

1 messages · Page 1 of 1 (latest)

thorn mural
#

I have a error on my pause menu, idk why but everytime when i try for the first time i have to click ESC 3 times just to open the menu, but if i try again for a second time it opens on the first time i press ESC and my if i try to open the settings button on the pause menu for the first time it just closes all of the menus and again the next time i try it it opens correctly

merry token
#

gonna have to share some code

#

!code

frozen violetBOT
thorn mural
merry token
#

please share it properly as described by the bot embed above, specifically the section on "large code blocks"

thorn mural
fathom steppe
#

Which GameObject is this script attached to?

#

Is it either of the menu objects themselves?

merry token
#

have you tried debugging to make sure all your presses are being received? then check if the conditions are as expected

fathom steppe
#

The other problem will be:
The Esc key is a special key in the Unity editor. Pressing it makes your game window lose focus and stop handling input

#

One quick thing to try is to rebind the key to something else for testing/edit time

#

For example try binding it to J and see what happens

merry token
fathom steppe
#

Not 100% sure, worth a try though