Hello Guest

Author Topic: Resolution overrides aren't working on device  (Read 4797 times)

threedaymonk

  • Newbie
  • *
  • Posts: 3
    • View Profile
Resolution overrides aren't working on device
« on: August 22, 2013, 02:31:50 am »
Hey y'all,

I am currently using 2 different resolution overrides, one is 640x1136 (iphone 5), and the other is 768x1024 (ipad 2). They are working for the game view when I set it as one of those resolutions, but when I run it on one of those devices it doesn't use an override but just makes it pixel perfect. Although if I set a wildcard override both devices detect that. Any idea what I am doing wrong?

Thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Resolution overrides aren't working on device
« Reply #1 on: August 22, 2013, 10:00:54 am »
It is probably some confusion with landscape / portrait resolutions? Print out Screen.width and Screen.height when running on device - it uses those to detect resolution.

threedaymonk

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Resolution overrides aren't working on device
« Reply #2 on: August 22, 2013, 11:27:45 am »
For some reason Screen thinks my iPhone 5's resolution is 960 by 640 which is the phone 4s resolution. I'll check the ipad tomorrow and see what it says.

threedaymonk

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Resolution overrides aren't working on device
« Reply #3 on: August 22, 2013, 09:25:13 pm »
Ah sorry I had a player setting wrong so it was forcing all of the resolutions to 960 x 640. It works now thanks!

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Resolution overrides aren't working on device
« Reply #4 on: August 22, 2013, 10:10:29 pm »
Awesome.