Author Topic: Bug: 2.0.7c cannot set sprite padding manually  (Read 6134 times)

loopyllama

  • Guest
Bug: 2.0.7c cannot set sprite padding manually
« on: June 06, 2012, 09:24:23 AM »
Hi,
In 2.0.7c with the latest Unity select your atlas. Select a sprite and set the padding to 0, 0, 0, 0 in the inspector.
Then set the 4 padding values to some non-zero amount like 100, 100, 100, 100. You can't! As you type the other 3 padding fields change on their own.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Bug: 2.0.7c cannot set sprite padding manually
« Reply #1 on: June 06, 2012, 02:54:20 PM »
Eh? No they don't.

ryan

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 90
    • View Profile
Re: Bug: 2.0.7c cannot set sprite padding manually
« Reply #2 on: June 06, 2012, 04:00:46 PM »
I've seen this behavior before when trying to remove padding, although I'm not sure I could reproduce it now.  It only happened for specific sprites.  I think my fix might have been to remove the sprite from the atlas and re-add it.

loopyllama

  • Guest
Re: Bug: 2.0.7c cannot set sprite padding manually
« Reply #3 on: June 06, 2012, 04:09:40 PM »
@aren
dear sir, they do. you just need the correct test case. for instance a texture with a non-zero padding on import like the attached texture.

simply:
add the attached texture to any project
create a new atlas with the attached texture
change the default padding to 0 0 0 0 (from left:27 top:14 right:181 bottom:185)
try to change the padding to 100 100 100 100
you cannot