#GUI scale with custom resolution

1 messages · Page 1 of 1 (latest)

flint kestrel
#

I have an issue and I don't know what's going on.

I set up a new 9verb project and I am using a custom resolution of 352 x 198. I set those values in the screen setup.

I designed a 9verb GUI in Aseprite. The Aseprite file dimensions are 352 x 198.

In the project, I edit the Verbs GUI. I point the sprite importer to my Aseprite file. I import a new background. I change the Sprite for the Img "Bg" in the GUI to my new background sprite. Then I go and set up the new button fonts and align all the colliders and inventory grid. Everything seems like it should be fine. All the pixel dimensions are the same between Aseprite and what I am doing in the GUI.

Then I play the game, and the verbs GUI is a lot smaller than it should be. But when I count pixels, it seems like it's not scaled down. All the right pixels are there. But then how can it be smaller?

#

I feel like maybe there's another number I need to set in the game settings somewhere related to scale... I remember something like this before...

shrewd escarp
flint kestrel
#

ahh yes thanks! That was it

Is there a rule or formula to use to get the correct number for that? I think before I was doing trial and error

shrewd escarp
#

Just the same as the game camera

#

But yeah, Unity camera's orthographic size is half the height

#

so 99 for you

flint kestrel
#

awesome. Thank you

#

GUI scale with custom resolution

#

I made this thread title better for posterity. Thanks Dave

worldly swift
#

Monkey Island with 80s sports cars!?!

You're onto a winner, Bennethon!!

flint kestrel
#

Lol yeah can’t wait for it to be ready for release in 2035

analog hearth
#

Kids: "Dad, you will working on your game? ...ok off to get married now!" 😂

flint kestrel
#

Haha yes