Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: th_reflekt on December 20, 2013, 05:50:37 AM

Title: Strange Pixel-Offset (iOS, iPad retina)
Post by: th_reflekt on December 20, 2013, 05:50:37 AM
Hello, i got a strange problem using NGUI 3.0.6 f7 designing a UI for iPad (2048x1536 resolution).
Some sprites i'm using have one pixel "offset". I'm using UIToggle, e.g. with one "background" sprite and a "checkmark" sprite. Both images have the same size, both sprites the same dimensions and positions and using "Extract Sprite" gives me the correct images. Starting the application in the editor, the UI is shown correctly, too. However, when running the application on the device both sprites do not overlap correctly.

I attached an image which should (hopefully) explain the effect. The white line on the left side of the UI element should not appear (and does not appear when i run the app in editor, only on the iPad).
Title: Re: Strange Pixel-Offset (iOS, iPad retina)
Post by: ArenMook on December 20, 2013, 11:42:33 AM
What are the settings of your UIRoot?
Title: Re: Strange Pixel-Offset (iOS, iPad retina)
Post by: th_reflekt on January 07, 2014, 03:02:21 AM
Hey, sorry for the late response (i was on vacation). The settings are:
Scaling Style: PixelPerfect
Minimum Height: 1536
Maximum Height: 1536

The app is supposed to run only on one specific iPad, so there's just one resolution to care for.
Title: Re: Strange Pixel-Offset (iOS, iPad retina)
Post by: ArenMook on January 07, 2014, 09:13:57 AM
Update to the latest, and clear the padding values on the sprites.