Skip to content

Screen resolution adaptability (unity)

Hi wonderful people,

I have just built a little gameplay of an horror game and sent it to some friends to have feedbacks. The major problem i found is that the game screen doesn’t adapt to the computer screen if the resolution is different from the one i used to develop in unity (1920x1080). Any suggest how to solve this problem ?

Ps: have the same issue with mouse sensitivity Thanks

1 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
hlc09n

Author

14
posts
8
comments
5
media
View profile

2 comments

You want to use a Canvas Scaler. https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/script-CanvasScaler.html

You likely have one with "Constant Physical Size" selected. Make sure your stuff is anchored right, if not, it may look funny when switching to "Scale with Screen size". Depending on the targeted platform "Constant Pixel Size" might work for you as well, as you can set the DPI.

Here is some more in depth reading https://docs.unity3d.com/Packages/com.unity.ugui@1.0/manual/script-CanvasScaler.html#constant-pixel-size

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.