Hi all.
I’m having a very strange problem using the new UI.
It all works fine, with 4 buttons (Start Game, Options, High Scores, and Exit Game), all highlighting and clicking fine at the default 1280x720 size.
But when I resize the window, or go full screen, the bottom button doesn’t highlight. Instead, the button above it does, and stays lit, even though navigation is set to none.
It’s very odd.
I’m not doing anything special with this menu. I was just setting it up ready before I do any artwork with it, when I noticed this problem.
Sizing the window down works fine, and sizing it up works fine most of the time. It’s only when it gets to almost full size, or if I maximize the window, that this behaviour happens.
Is this a known bug, or am I missing something obvious?
Any help very much appreciated.
This is a known issue in the UI at present. In some states, the highlighted state of a button is not cleared.
Thanks. That sort of sounds like it.
I’m not getting any problems in it’s normal size.
Here’s a pic to help explain it a bit:
The top pic is when it’s run at 1280x720, and all menu items highlight and click as expected.
The bottom pic is when it’s fullscreen windowed (in this instance, it’s 1920x1080).
The cursor is in the same position in both shots, just after the E in EXIT GAME, but when fullscreen, it doesn’t highlight.
In fact, clicking here highlights the menu item above it!
If I start from the top menu item, and go down them one by one, when I hover over EXIT GAME, the HIGH SCORES item stays highlighted.
Hope that explains it a bit better.
It does seem to be related to bigger screen sizes.
Thanks for your help so far.
Hmm, I’d log that as a bug using the Unity bug reporter in the editor (under the help menu)
it could be the raycast system is getting messed up when you change resolutions.
I take it when you start in full screen mode it works fine? and then doesn’t when you window it (the reverse of your scenario above)
Yeah, it just seems to be in windowed mode, and only when I stretch the window to almost fullscreen, or maximise it.
In fullscreen un-windowed, it seems to work fine.
I’m going to be writing the options menu in the next couple of days, specifically the resolution/aspect ratio/fullscreen or windowed options, so hopefully that will home in on where the problem lies.
Thanks again.