Forum rules - please read before posting.

Menus stretching when using range for Aspect ratio

I have my camera aspect ratio set as a range in the Settings Manager, and I have now noticed that my customized AC menus are being stretched or squeezed depending on what aspect I set in the Game tab. This does not happen in the unity UI-based menus with a Canvas Scaler component. But i thought that AC based menus are accounting for this as well? Or am I missing some setting somewhere? I could not find anything in the Inspector, but maybe I'm just not looking correctly. The sizes of the menus and elements are set as Manual (I prefer that option due to the range of aspect ratios and flexibility on various screen resolutions).


Comments

  • Can you share images of how the Menu appears at different Game window sizes?

    I recommend the use of Unity UI for all your Menus, however.

  • Here it is. I would really prefer I didn't have to redo the whole menu system in the Unity UI; it was a lot of complicated work.



  • With the black background, I can't tell where the aspect-ratio borders are - can you share these again without the background?

  • Sorry about that, here it is:



  • It looks as expected - the Menu's Size % setting is fixed, scaling up with the screen size until you reach the aspect ratio limit.

    Unity UI is the answer.

  • edited July 2024

    Thank you, not what I was hoping to hear, but it is what it is :)

    I have just two questions when recreating these menus using Unity UI.
    1) What element should i create in the hierarchy for new menu prefab to have a add the Saves List element to? Is it just an Image (or is it a raw image or something completely different)? It will hold a screenshot of the saved games so I would like it to scale accordingly to the specific aspect ratio (just like it does in the AC based menu).
    2) How do I recreate the Aligned position - is that the Rect transform component?

  • What element should i create in the hierarchy for new menu prefab to have a add the Saves List element to? Is it just an Image (or is it a raw image or something completely different)?

    A regular Image, on a separate Button object for each slot, is enough. A "Save game screenshots" UI template is available on the Downloads page.

    How do I recreate the Aligned position - is that the Rect transform component?

    UI objects can be aligned relative to one another using Layout Group components, e.g. Vertical Layout Group.

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.