1
NGUI 3 Support / Collision areas of buttons not precise in different mobile resolutions
« on: May 07, 2013, 04:34:52 AM »
Hello,
I've just started using NGUI and found it super cool with design UIs. However I just got some weird issues today and had no idea what exactly could cause the problem.
My game's images are designed for 1200x800px resolution and in UIRoot script of my UI I set Scaling Style "FixedSizeOnMobiles", Manual Height "1200", Minimum Height "1200". And there is no problem when I run the game in Unity simulator, the issue occurred when the game played on an android device with resolution 480x320px.
(See attached screenshot please)
I got two buttons at the bottom of the screen (the ninja pic and the shuriken one).
It looked like the collider boxes of these two buttons were "moved" a bit toward center of the stage, or what I thought was due to NGUI auto scaling stuff (not really sure since I already tested with 480x320px resolution in Unity simulator with no problems found).
Anyone already had same problem, or have some ideas on this please?
Sorry if I didn't make it clear enough and thanks for any suggestions!
Cheers.
I've just started using NGUI and found it super cool with design UIs. However I just got some weird issues today and had no idea what exactly could cause the problem.
My game's images are designed for 1200x800px resolution and in UIRoot script of my UI I set Scaling Style "FixedSizeOnMobiles", Manual Height "1200", Minimum Height "1200". And there is no problem when I run the game in Unity simulator, the issue occurred when the game played on an android device with resolution 480x320px.
(See attached screenshot please)
I got two buttons at the bottom of the screen (the ninja pic and the shuriken one).
It looked like the collider boxes of these two buttons were "moved" a bit toward center of the stage, or what I thought was due to NGUI auto scaling stuff (not really sure since I already tested with 480x320px resolution in Unity simulator with no problems found).
Anyone already had same problem, or have some ideas on this please?
Sorry if I didn't make it clear enough and thanks for any suggestions!
Cheers.