Author Topic: Scaling for iPad & iPhone not working as expected?  (Read 1971 times)

Roots

  • Guest
Scaling for iPad & iPhone not working as expected?
« on: October 31, 2013, 11:55:29 PM »
Hi all,

So i got my game working fine on both PC and Mac OSX and now moving to the IOS platform. Running into some challenges with the automatic scaling of the NGUI menu. Basically i have an NGUI window open during the entire game, like a tool box. It hovers in the top right of the screen. Th UIRoot is set to automatic. Running in PC and Mac OSX mode is all works as expected. When running it via XCode on an iPad or iPhone the NGUI menu is tiny. I must be overlooking something?!

On my Mac and PC the menu is like 3/4 of the screen height, on my iPad it is like less than 1/4 of the screen height.

Any suggestions? I don't do any resizing in code, I just have one simple Atlas (use the same one for PC and Mac).

Thanks,
Dan

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling for iPad & iPhone not working as expected?
« Reply #1 on: November 01, 2013, 06:39:34 AM »
Check your UIRoot settings. If you have it set to FixedSizeOnMobile, then it will differ on mobiles vs desktop builds.

Darkmax

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 1
  • Posts: 93
    • View Profile
Re: Scaling for iPad & iPhone not working as expected?
« Reply #2 on: November 01, 2013, 09:33:47 AM »
if you have FixedSizeOnMobile on UIRoot, on your editor and pc release will work like pixel perfect if I'm not mistaken, and if you put FixedSize this will work on all the devices and editor the same.

This last one is what I use on my projects.

Roots

  • Guest
Re: Scaling for iPad & iPhone not working as expected?
« Reply #3 on: November 01, 2013, 11:36:27 PM »
ok thanks for the tips, will give this a try.  Also had to upgrade NGUI to the latest version so there is bit of redesigning to do as well.

ArenMook: Thought you had moved over to the mothership? what happened there?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling for iPad & iPhone not working as expected?
« Reply #4 on: November 02, 2013, 08:02:23 AM »
If by mothership you mean Unity, I'm still there.