Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: blechowski on September 27, 2013, 02:48:37 PM

Title: Sliced Sprite handling changed for sprites with padding in 3.0.0g
Post by: blechowski on September 27, 2013, 02:48:37 PM
I have a sprite in an atlas. The sprite is 200x160 dimensions and Top and Bottom Padding of 20 each. Border is all 0.

In 2.7.0 I would set localScale to 200x160 to make it Pixel Perfect. Padding was ignored.
In 3.0.0g I need to set width and height 200 to make it Pixel Perfect. Padding is not ignored.

Is this intended behavior?
Title: Re: Sliced Sprite handling changed for sprites with padding in 3.0.0g
Post by: ArenMook on September 27, 2013, 06:14:21 PM
Yup, for consistency's sake with the upcoming UnityGUI. I made padding work there, and wanted NGUI to follow suit. If you don't want it, you can always remove the padding values from the sprite itself by editing it.