Author Topic: Sliced Sprite handling changed for sprites with padding in 3.0.0g  (Read 3651 times)

blechowski

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
Sliced Sprite handling changed for sprites with padding in 3.0.0g
« 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?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sliced Sprite handling changed for sprites with padding in 3.0.0g
« Reply #1 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.