Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

How to Setup Android Resolution Screen

Discussion in 'Android' started by Isabelle_Melies, Jun 10, 2014.

  1. Isabelle_Melies

    Isabelle_Melies

    Joined:
    Jun 8, 2014
    Posts:
    21
    Greetings everyone , i'm learning to make android apps. I wanna know how to set screen resolution when i make new 2d project . In unity doesn't show smartphone screen, so i don't know whether my apps fit the screen or not. Can you tell me how to fit my application with android resolution? example : I wanna make apps for 480x800 pixel screen.

    Please help this newbie, i'm worried if my application doesn't fit its resolution
     
    DBar likes this.
  2. NickP_2

    NickP_2

    Joined:
    Jul 9, 2013
    Posts:
    61


    Where the "add" window is, should be a "+" that opens this window. And you can open this dropdownbox by clicking on 16:10 Landscape(16:10)!
     

    Attached Files:

    DBar and Isabelle_Melies like this.
  3. Isabelle_Melies

    Isabelle_Melies

    Joined:
    Jun 8, 2014
    Posts:
    21
    Thanks it worked :)
     
  4. NickP_2

    NickP_2

    Joined:
    Jul 9, 2013
    Posts:
    61
    Wohoo. Does that mean my country is now save from blitzkrieg? ;)
     
    DBar likes this.
  5. Crichton333

    Crichton333

    Joined:
    May 4, 2014
    Posts:
    113
    Its still 2014 so you never know :)
     
    rahulk1991 and NickP_2 like this.
  6. Kilrath81

    Kilrath81

    Joined:
    Nov 19, 2013
    Posts:
    153
    if you set up Unity4 Remote there is an option in there for the Remote size and it will scale the editor preview to the same view port of the connected deevice.
     
  7. TH3ORY

    TH3ORY

    Joined:
    Mar 31, 2014
    Posts:
    2
    Hi im new to make mobile games :) Can someone please answer this for me if i use the above method lets say i set it to 1920x1080 so when i build my game will it automatically build to specific resolution ? or do i need to define the screen resolution in a script ? Thanks
     
  8. DalerHakimov

    DalerHakimov

    Joined:
    Mar 14, 2014
    Posts:
    302
    Mobile phones have different screen resolutions. You can't program only for one screen resolution. Instead, you have to size up/down the screen size, and test the game in different resolutions.. I find out this issue one of the hardest part in dev for mobile games.. There are not a clear answer for this, and everyone have different approach... I still learn, and hopefully can make it soon.. So, don't stick yourself to one screen resolution.. The aspect ratio matters, but not the resolutions.. its different
     
    TH3ORY likes this.
  9. niko-belic

    niko-belic

    Joined:
    Sep 1, 2012
    Posts:
    67
    For example, JS on camera

    Code (JavaScript):
    1. function Start(){
    2. var resolutions : Resolution[] = Screen.resolutions;
    3. for (var res in resolutions) {  
    4. }
    5. Screen.SetResolution (resolutions[0].width, resolutions[0].height, true);
    6.  
    7.  
    8. Screen.SetResolution (800, 600, true);
    9. }
     
    DBar and TH3ORY like this.