Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: milox on January 28, 2013, 02:30:58 PM

Title: Scaling Style issues
Post by: milox 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?!
Title: Re: Scaling Style issues
Post by: ArenMook 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).
Title: Re: Scaling Style issues
Post by: milox on January 28, 2013, 02:57:16 PM
Fixed it, thanks.
Title: Re: Scaling Style issues
Post by: robindelange 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.
Title: Re: Scaling Style issues
Post by: robindelange on August 30, 2013, 07:24:30 PM
Okay, my fault! The height of my screen is of course 1280, not 720 :S
Title: Re: Scaling Style issues
Post by: Nicki 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.