Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: MrMitch on November 26, 2013, 06:54:47 PM

Title: Mobile and Tablet Scaling
Post by: MrMitch on November 26, 2013, 06:54:47 PM
I'm currently having some issues getting my GUI to scale correctly on more than one device, i've messed with the UIRoot and read the doc info on the UIRoot but no luck.

Any advice?(i'm using playmaker)
Title: Re: Mobile and Tablet Scaling
Post by: ArenMook on November 26, 2013, 11:43:10 PM
How do you want it to scale? Scaling Style on the UIRoot is what controls scaling.
Title: Re: Mobile and Tablet Scaling
Post by: MrMitch on November 27, 2013, 07:04:38 AM
Yeah i know Scaling Style controls the scaling but no matter how i set it up it doesn't scale properly with all my devices, looks fine on my Galaxy Note 2 but then when i try it on my Nexus 7 i can see the sides where the GUI doesn't cover and when it get it to look right on my Nexus 7 the GUI is slightly too wide on my Galaxy Note 2 yet they are apparently they exact same screen resolution :S

So am i missing something or just thinking that NGUI can do more than it actually does?

Help me  ;D
Title: Re: Mobile and Tablet Scaling
Post by: ArenMook on November 27, 2013, 10:17:16 AM
If they are the same screen resolution then everything should look identical. Have you tried to use NGUIDebug.Log(Screen.width + " " + Screen.height); just to double-check?
Title: Re: Mobile and Tablet Scaling
Post by: MrMitch on November 27, 2013, 12:43:19 PM
Nope how do i do that?

EDIT

I did a resolution check via playmaker and it turns out they are different resolutions! very strange since the official websites say they are the same...

So back to scaling, any advice?

EDIT2

I did a little research and discovered that the resolution is different because of the nexus 7 having its home and back buttons on screen, so now i need to test my game on a device with a proper screen res and see what results i get ;D at least i think thats the right course of action unless you have any better suggestions?
Title: Re: Mobile and Tablet Scaling
Post by: MrMitch on November 28, 2013, 07:06:48 PM
bump

should have maybe replied rather than editing might have been seen that way :P
Title: Re: Mobile and Tablet Scaling
Post by: ArenMook on November 29, 2013, 10:35:59 AM
If the aspect ratio changes, then you are highly likely to see more or less depending on the width of the screen. Using anchors is the only proper way to alleviate it: http://www.tasharen.com/forum/index.php?topic=6712.0