Game not correctly scaled

For some reason, once I build my game and upload it to play in a browser, everything in the camera view is scaled correctly but all of my UI elements are enormous. The embeded webgl window is also widescreen instead of thin like it was designed, so the player can see things out of bounds and can now move into out of bounds as well. Is there anything I can do to fix this?

Go to Edit - Project Settings - Player

There you have a bunch of options, change the Default Canvas Width and Height to your game’s resolution.

Edit: Almost forgot, for your UI size. Go to your Canvas Scales which in in the canvas and set the UI Scale mode to Scale With Screen Size. Also set the Reference Resolution.

Thank you so much! I figured it was something simple I was missing.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms