Author Topic: Scaling Style issues  (Read 7443 times)

milox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
Scaling Style issues
« on: January 28, 2013, 02:30:58 PM »
It seems that with some recent update something was changed with scaling in NGUI not sure which one, I updated today and and noticed  my GUI is messed up. Gone is the Automatic scaling option, which worked perfectly fine for me, and my old 3D HUD is all messed up - buttons look big and pixelated and their position is off screen now and I have no idea how to fix it. What the hell is this new Scaling Style options do like PixelPerfect and FixedSizeOnMobiles?!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Scaling Style issues
« Reply #1 on: January 28, 2013, 02:41:43 PM »
PixelPerfect = automatic set to 'true'.
FixedSizeOnMobiles = automatic set to 'true' on desktops, and 'false' on mobiles. Useful if you're coding a game that should run in pixel-perfect resolution on PCs, but want it to stay consistently the same size on mobiles (as their screen sizes vary greatly).

milox

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 10
    • View Profile
Re: Scaling Style issues
« Reply #2 on: January 28, 2013, 02:57:16 PM »
Fixed it, thanks.

robindelange

  • Guest
Re: Scaling Style issues
« Reply #3 on: August 30, 2013, 09:01:46 AM »
How did you fix this problem? Using an old version of NGUI I had no problems with scaling to various screen sizes by deselecting the 'automatic' checkbox. The FixedSizeOnMobiles doesn't seem to work however. With the standard heights, my UI still looks strange on a 800*480 screen.

I have read different topics on this, but still quite stuck.

robindelange

  • Guest
Re: Scaling Style issues
« Reply #4 on: August 30, 2013, 07:24:30 PM »
Okay, my fault! The height of my screen is of course 1280, not 720 :S

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Scaling Style issues
« Reply #5 on: August 31, 2013, 08:30:57 PM »
Automatic --> Pixel Perfect
Manual --> Fixed Size
Fixed Size on mobile is a mix that does fixed size on mobile and pixel perfect everywhere else.


They both relate to the relationship between screen pixels and NGUI's virtual pixels.