Game Responsive

Hi, I have a question that How to make a game responsive so that it can fit on every mobile or desktop device can anyone have an idea because in unity I set the camera to aspect ratio 5:9(portrait) so this size not fit on all types of devices so anyone have any idea?

Hi Kamran,

What kind of game? What exactly is the problem? Theoretically, you can set the resolution of the game window to the screen size via code. See the Unity API.

Hi, Any type of game like the games i create in the unity course like snow border, quiz game,Delivery game etc. When the game play on different devices than due to the different size/resolution of the device the game objects and the other things being replaced from its position. Yeah we can set the resolution but how many resolutions can we set then when the size/resolution changes than game UI all disturb.

You could use the Canvas Scaler to have the GUI get scaled. Or you could write code to scale the GUI.

If you want a tip: It is relatively unlikely that a game that was designed for big screen looks great on a small screen, and vice versa. Good game developers do not try to create a game that works on every screen that exists on this planet. They do some research on their target group(s) and platforms, then solve problems for those platforms. This way, they will not have to discard good ideas just because those ideas don’t work on every device that exists on this planet.

Ahh That’s the way Thank you. I understand :+1:

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

Privacy & Terms