Forum rules - please read before posting.

Any advice to get UIs' aspect ratio right (16:9 natively, 4:3 "letterboxed")?

edited November 2015 in Technical Q&A
For my first AC project I'm porting a game I made with Adventure Game Studio last year. Of course I took the chance to add some features and tweak here and there, but tried to keep the main UIs (mainly, the InventoryBar) as close as possible to the original.

Originally, the game was developed with 800x600 backgrounds but now it sports a nice 16:9 display resolution. In the Game Settings I've forced the aspect ratio to 1.78 so that on 4:3 screens it would show a "letterbox" frame.
It does so, but unfortunately some of the Menus\UIs (mostly those I made using Adventure Creator as a Source) get out of bounds as - kinda - does the Subtitles Menu (appearing more above the speaking character than usual).

The Inventory UI uses AC as Source.
image

This is actually obtained with two
UIs: one in the background (the pipe, the handle on the left, the exit
button and the background) which has Unity UI as Source and one in the
foreground (the pins) which has AC as Source - extremely helpful to get
the Toggle right.
The first UI seems to scale perfectly, the other one not
very much.
image

As it probably "should" be for any first project with a new tool, I'm sure I kinda made a mess throughout the whole development, playing around with Relative To Menu Size \ Manual settings and so on.

Have you any advice on how can I deal with these sort of problems?

Thanks a lot in advance!

Comments

  • When building your AC menu for a fixed aspect ratio, it's important to also have the same ratio in your Game window - otherwise the Menu could well end up being stretched undesirably.

    It's worth me saying that the AC Menu system was designed before Unity UI existed.  Had that not been the case, it's likely that Unity UI would be the only option, as it's much better suited for resizing and the like.  If you can, I would recommend using Unity UI as your Menu's Source wherever possible.
  • edited November 2015
    In the Game window I used the 16:9 aspect ratio most of the time when developing the game, so you're right.

    I thought that using the Unity UI would be a solution, but asked to see if there were any other suggestions. The InventoryBar is not a big deal (recreated it in 5 minutes with the Unity UI), what really scares me is the other one with the pipes, pins and the handle. The thing is that AC deals with Toggles in a really easy way and I can't seem to figure out how to make something as "quick and easy" with the UnityUI.

    Still, thanks for your answer :)
    I'll beat out my laziness and figure it out!
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.