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
#Menu Error
1 messages · Page 1 of 1 (latest)
Posting code
📃 Large Code Blocks
Use links to services like:
https://paste.mod.gg/, https://hastebin.skyra.pw/, https://paste.ofcode.org/, https://paste.myst.rs/
📃 Inline Code
Surround code with three backquotes. Not quotation marks.
To format as C#, add cs to the first line:
```cs
// Your code here
```
Add a comment with a line number if there is an error message.
please share it properly as described by the bot embed above, specifically the section on "large code blocks"
Which GameObject is this script attached to?
Is it either of the menu objects themselves?
have you tried debugging to make sure all your presses are being received? then check if the conditions are as expected
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
isn't that just for mouse locking? i haven't had an issue with that
Not 100% sure, worth a try though