Search Unity

Screen.SetResolution broken on some Android Devices

Discussion in 'Android' started by andrew210, Nov 9, 2018.

  1. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241


    Have started seeing this issue both on BlueStacks and reported from some users on devices recently that when using:

    Screen.SetResolution (supportedWidth,supportedHeight, true);

    Instead of scaling the game to fit the whole screen still, it uses the exact pixels of the resolution set. The input is acting as thought its been scaled (I have to tap where I would have to tap if the game scaled correctly). Setting the resolution to the native screen size makes it work correctly but I need to be able to allow users to set lower resolutions depending on how powerful their devices are.
     
    Last edited: Nov 9, 2018
  2. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    We don't officially support BlueStacks.

    If you happen to see the same happening on a real device, please submit a bug report.
     
  3. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
    Yes as I said:

    Two devices effected are google nexus 10 and Asus Zenpad 10

    Reverting to Unity 2017.4 makes the issue disappear but the issue is present on 2018.2.14f1
     
  4. Yury-Habets

    Yury-Habets

    Unity Technologies

    Joined:
    Nov 18, 2013
    Posts:
    1,167
    @andrew210 please submit a bug report with the project attached. Make sure to put the details about affected devices into the description. Thanks!
     
  5. andrew210

    andrew210

    Joined:
    Apr 23, 2014
    Posts:
    241
    Shall do! Thanks for getting back to me!