I sometimes use an external monitor and sometimes use the screen on my Macbook Pro 16 inch. The displays have slightly different aspect ratios. When I launch SR2 on one after having previously played using the other I get either black bars on the sides or black bars on the top. Starting in the recent beta release (0.9.400) when this happens buttons, especially those near the edges of the screen with the balck bars become difficult to click (the clickable area is misaligned as if the black bars weren't there). Changing the resolution in the settings each time fixes the issue.

Bug Done Found in 0.9.400.0 Fixed in 0.9.507.0
Sandbox View

8 Comments

  • Log in to leave a comment
  • Profile image

    This should be fixed in Unity 2019.4.12.
    The next game update should include an update to use this Unity version (or greater).

    +2 4.1 years ago
  • Profile image
    Mod sflanker

    @NathanMikeska thanks! I'm glad it got looked into, and I'm happy with my mod based workaround.

    4.5 years ago
  • Profile image

    @sflanker Thanks for the extra info. I did a lot of digging into this today. The reason I was unable to reproduce it before is because it seems to only be an issue on MacOS and I was testing on Windows. I was able to reproduce it in a side project, so it definitely appears to be a Unity bug that was introduced somewhere between Unity 2019.2.3 and 2019.3.15. I submitted the bug report to Unity this evening. Hopefully its something they can address soon. Sorry about that...

    +1 4.5 years ago
  • Profile image
    Mod sflanker

    @NathanMikeska to answer your questions specifically: yes it does mess up the main menu (see video); nope, the steps you outlined are all it takes.

    In other news here is a mod that fixes the issue to my satisfaction 😅. It does this by detecting the discrepancy between current resolution and the supported resolutions list and picks the supported resolution with the width closest to the current resolution. This solution might not be universally ideal (maybe some people like seeing black bars?), and the reason the UI element hit boxes don't match reality may warrant more investigation. The mod includes a quick hack to reproduce the issue (there is a commented out line that manually sets the resolution to a 16:9 aspect ratio).

    4.5 years ago
  • Profile image
    Mod sflanker

    The resolutions I'm working with: external 3840x2160 (16:9), laptop 3584x2240 (16:10). I can also reproduce the issue by using Mission Control to move the SimpleRockets 2 window between my screens. Here's a video of the issue

    4.5 years ago
  • Profile image

    I'm guessing this is related to the Unity update. I have tried to reproduce this issue with no luck. My laptop and monitor have the same native aspect ratio I believe, but I tried adjusting display resolutions via windows and bouncing back and forth between laptop screen and external monitor and could not get the buttons to mess up as you described. Is it messing up on the main menu? Any steps to reproduce other than launch it on the external screen, shut it down, unplug the screen, then launch it on the laptop screen?

    4.5 years ago
  • Profile image
    Mod sflanker

    I'm bummed @Jundroo shipped 0.9.40x without fixing this bug. It's pretty annoying to have to carefully click a few centimeters to the left or right of all the controls until I can change the resolution. I'll post a YouTube video demonstrating the issue, but I'm surprised if you weren't able to reproduce this.

    4.5 years ago

1 Upvote

Log in in to upvote this post.