Author Topic: Doubt with Fixed size on mobiles  (Read 2467 times)

garmo

  • Guest
Doubt with Fixed size on mobiles
« on: December 11, 2013, 07:26:32 AM »
I have designed my UI for 1536x2048 resolution maximum (iPad Air), but I want to view my UI on iPhone 4S too (640x960) or in any smartphone. So, I choose "fixed size on mobiles" like scaling style setting manual height to 2048 (my target height).



I have designed a piano takes all width in my design (1536 pixels) and I want to it fills all width of any device. In game view, if I set 1536x2048 resolution there is no problem, I view all piano keys  but if I set to other resolution, for example iPhone 4S resolution, I do not view all piano keys.



I thought if I choose "fixed size on mobiles" this would scale proportionally all my widgets to view them like in the designed UI resolution. Only, if I change the orthographic size of UICamera I view always all the piano keys.

Any suggestion?

ZachHoefler

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 13
    • View Profile
Re: Doubt with Fixed size on mobiles
« Reply #1 on: December 11, 2013, 04:10:31 PM »
PixelPerfect is the automatic scaling. FixedSize means the camera won't re-size things automatically. FixedSizeOnMobile means it auto-scales for your non-mobile builds, but does *not* scale for your mobile build.

Check the documentation for more info if that doesn't make sense, but essentially, you're using the wrong setting :)

garmo

  • Guest
Re: Doubt with Fixed size on mobiles
« Reply #2 on: December 12, 2013, 04:35:58 AM »
I have the same problem it does not solve it.

hellobard

  • Newbie
  • *
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 22
    • View Profile
Re: Doubt with Fixed size on mobiles
« Reply #3 on: December 12, 2013, 03:53:54 PM »
Guys, you should get Retina Pro from the asset store and learn about atlas switching. You can do it without Retina Pro, but it's a lot easier with it.
For pixel perfection, atlas switching is the only way. It's a giant headache to get every device working though, so be prepared.