Author Topic: Sprite size snap no longer working  (Read 19389 times)

arkon3

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 71
    • View Profile
Sprite size snap no longer working
« on: November 21, 2016, 10:05:42 PM »
Unity 4.7.2 and NGUI 3.10.2 I have a sprite 247 x 55 pixels and when I press Snap on the sprite it sets it to 256 x 64.
What am I doing wrong, it used to snap it to the correct size.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite size snap no longer working
« Reply #1 on: November 27, 2016, 04:02:32 PM »
When you use a center pivot point, the dimensions need to be dividable by two, otherwise you can't center it. In your case though, it seems your source texture was probably 256x64. NGUI replaces invisible pixels with padding instead to reduce overdraw.