So if my game made from 2560 x 1080 monitor, and mainly targeted 1920 x 1080 resolution.
But if gamer run this game on his 4k monitor (or monitor that has more resolution above), all things will shown weird?
How to block this?
Thanks.
So if my game made from 2560 x 1080 monitor, and mainly targeted 1920 x 1080 resolution.
But if gamer run this game on his 4k monitor (or monitor that has more resolution above), all things will shown weird?
How to block this?
Thanks.
You can read the resolution in code and if it’s not the desired resolution set the applications resolution to it.
You can set what’s possible in “Resolution and Presentation” in the player settings.
Note that forcing the resolution is pretty bad form. You should strive to have your game work in any resolution.
How to make my game to work like that?
Try it in different resolutions. Understand why it’s displaying differently. Make changes so those differences are not a big problem.
It’s not easy, nor is there any general-purpose solution. Unity’s UI helps a lot on that front by allowing you to define UI by anchor points instead of pixels.Otherwise you’ve got to make the changes necessary for your game.