Author Topic: UISprite padding bug  (Read 5043 times)

ntopia

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 0
  • Posts: 15
    • View Profile
UISprite padding bug
« on: May 10, 2013, 03:40:02 AM »
Hello. I'm using NGUI 2.6.1e & Unity 4.1.2f1.

When I use UISprite in type of Filled|Sliced|Tiled (not Simple), padding of sprite doesn't applying.

Is this a bug?
How am I supposed to do?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISprite padding bug
« Reply #1 on: May 11, 2013, 12:42:19 AM »
Padding only affects simple sprites, so it's not a bug.

ntopia

  • Newbie
  • *
  • Thank You
  • -Given: 6
  • -Receive: 0
  • Posts: 15
    • View Profile
Re: UISprite padding bug
« Reply #2 on: May 12, 2013, 10:56:24 PM »
but why??

Padding is UIAtlas.Sprite's attribute, not UISprite's attribute.
I think that it affects every sprites no matter what type it is.

I want to know why, please.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UISprite padding bug
« Reply #3 on: May 13, 2013, 02:44:52 AM »
And how would you use it with those types of sprites? I see no practical use for it. With simple sprites it's used to align sprites when you make them pixel perfect -- something you mainly need for animated sprites.