Lock UI scale

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Eldritch_Horror
Posts: 28
Joined: Sun May 28, 2023 8:30 pm

Lock UI scale

Post by Eldritch_Horror »

How do I lock the UI scale, so it isn't subject to the size of the 'Game' window?
User avatar
Tony Li
Posts: 22131
Joined: Thu Jul 18, 2013 1:27 pm

Re: Lock UI scale

Post 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 139 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.
Post Reply