Search Unity

Android screen Resolution

Discussion in 'Scripting' started by herbie, Jun 4, 2013.

  1. herbie

    herbie

    Joined:
    Feb 11, 2012
    Posts:
    237
    I'm making a 2d android game with a fixed orthographic camera position.
    I read a lot about resizing the resolution for multiple android devices and now I have a question.

    Imagine that you have a plane that fits the screen of a Galaxy Note.
    You also attach this code to the camera:

    Code (csharp):
    1. Screen.SetResolution (Screen.currentResolution.width, Screen.currentResolution.height, true);
    Will this plane fit the screen of every Android device?
     
  2. DexRobinson

    DexRobinson

    Joined:
    Jul 26, 2011
    Posts:
    594
    Sadly no. This is one of the biggest reasons why a lot of people don't develop for android. Until google starts to standardize their devices like apple it's going to continue. What factors in is the screen dimensions, 3x2, 16x9, 4x3, 16x10. These are the supported dimensions for the IOS products and android has a ton more with various performance on each device(for Android). You can use pillar or letterboxing to get the camera to remain at a certain aspect ratio but a lot of users will comment on it and give a bad review just for using it, which is dumb imo.
     
  3. herbie

    herbie

    Joined:
    Feb 11, 2012
    Posts:
    237
    Ok, thanks for reply.

    But how do all the developers of the games at the google play store handle with this?
    Does it frequently happens that an app has not the right resolution for the player?