Forum rules - please read before posting.

Resolution Forcing UI Issue

Hi everyone! Hopefully this is a simple problem with a simple solution but maybe I've been looking at this too closely for the last little bit!

I've got a 2D hand-animated game that forces a 1.778 aspect ratio and I've even gone into project settings to have the game play in a maximized window at 1920x1080. The art and UI are built around this, but in testing the game out on my Thinkpad (which has a native 1920x1200 resolution), I'm noticing that the game isn't adhering to the forced resolution.

This is creating some minor issues with my UI. Specifically lining up these elements: a flagpole highlighting hotspots that is meant to connect to the cursor icon that locks over the center of the hotspot. You can see more or less how it's meant to look here: https://dropbox.com/scl/fi/xc3qr99apempqzs707gmp/UI_1080.jpg?rlkey=177jclueywaamyb4c3qfjz9t6&st=01eogh82&dl=0

However, when I play on my Thinkpad and it forces a 1920x1200 resolution, the UI doesn't line up: https://dropbox.com/scl/fi/1rnvzbx1xtxl73i2ieikm/UI_1200.jpg?rlkey=yigli1i3dxwygk9k7izifdedr&st=20nq9h7l&dl=0

Perhaps the way to solve this is through the Menu or Cursor Manager, but I don't like the idea of forcing it to play at 1080p and other weird resolutions creating further edge cases. Anyone run into this before?

Thanks in advance!

Comments

  • What's the Menu's Source? Switch to Unity UI if it's not already, as it offers much more control over how its appearance varies with resolution.

    If you're dealing with forced aspect ratio, you'll likely also need to attach the Auto Correct UI Dimensions component to the UI prefab's root. This is an AC component that can re-scale/position a Menu if the playable game area (i.e. set by the forced aspect ratio) differs from that set by the hardware.

    The default UI prefabs feature this (see, for example, the HotspotUI prefab), and more details can be found in the Manual chapter of the same name.

    Have a look through and see if that can help - otherwise, share details of the Menu's properties / Canvas root, and I'll see if I can spot what's what.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.