Set up camera for 2D games for android

2

I did a test game for Android devices.

However when testing on a device, the game was completely distorted, squeezed on the screen.

On the computer, when testing the game I made a print of the screen width and returned 1440 which is exactly the width of the device I'm testing, a Samsung Note 4.

I know that this 1440 in the cell phone is not the same for the pc, there are differences in density, but I do not know how to solve this problem.

How does the camera work on Unity3D and how do you solve the problem for different resolutions / densities?

UPDATE :

See an image of how the game is played by the Unity simulator:

Andanotherimageofhowitlooksonanandroiddeviceafterdoingbuildandrun:

Ihavenotchangedthecamera,whichhasthefollowingvalues:

    
asked by anonymous 03.08.2015 / 19:20

0 answers