Hello, guys. I have problem with screen orientation. In few word, if the screen orientation is landscape - there is all OK. But, when it in orientation “Portrait” the half of my game I can’t see… some objects by left and right do not fit in the camera. I test it in my tablet. Can someone help me to solve this problem? Maybe I need to make another camera for different screen orientations?
Any advices?
That’s why most mobile games are locked to either portrait mode or landscape mode. You can do that in the Player Settings.
It’s hard to make a game that will work on any aspect ratio; as you stated, a portrait orientation will cut off objects seen in a landscape orientation. You can develop with this in mind by using the “Aspect Ratio” button in the Game View.
Yes, I thought about this to make only “landscape” view. So, as I uderstand, there is no way to make both of view? I can make different camera to different mode? Or I can’t set camera to look on all objects in portrait mode?
Well you could have 2 cameras (only 1 enabled at a time, obviously), but then you’d spend a lot of time making the game look OK with both orientations. Since it’s a lot of work for almost no benefit, I always lock orientation to not worry about that.
Okay, thx much for your answers. And one more question, how u lock orientation? Edit > Project Settings > Player?
For Android, it’s like this: Unity - Manual: Android Player settings
So it’s File > Build > Player Settings.
Nice, it’s easy, thank you!