I'm working on Unity3D 2D mobile game and I've got a problem connected with aspect ratio. When changing aspect ratio the camera always fits vertically. For landscape mode games it is a good practice. For portrait mode games it is better to fit camera horizontally. So My game needs to fit camera horizontally. Please help me with it.
Let's say your aspect ratio is
4:3
If you want to make your camera fit landscape mode of 16 units wide, you would make your camera a size of
16 / 4 * 4
If you want to make your camera fit portrait mode of 16 units tall, you would make your camera a size of
16 / 3 * 4