Welcome,
Guest
. Please
login
or
register
.
April 30, 2026, 07:20:09 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sliced Sprite handling changed for sprites with padding in 3.0.0g
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sliced Sprite handling changed for sprites with padding in 3.0.0g (Read 3657 times)
blechowski
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 10
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?
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
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.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Sliced Sprite handling changed for sprites with padding in 3.0.0g