Page 1 of 1

Lock UI scale

Posted: Sun Jun 11, 2023 4:09 pm
by Eldritch_Horror
How do I lock the UI scale, so it isn't subject to the size of the 'Game' window?

Re: Lock UI scale

Posted: Sun Jun 11, 2023 8:46 pm
by Tony Li
Hi,

Inspect your Canvas (e.g., the Canvas child of the Dialogue Manager GameObject). Add a Canvas Scaler if it doesn't have one. Set UI Scale Mode to Scale With Screen Size. Then set a Reference Resolution. In the screenshot below, the reference resolution is 960x600:

canvasScaler.png
canvasScaler.png (23.32 KiB) Viewed 138 times

I like to slide Match to Height since height tends to be more similar across different monitors, but with can vary from normal width to super-ultra wide.