Author Topic: Sprite dimensions/padding/border reset upon building atlas  (Read 4811 times)

doppio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
I notice that every time I receive a menu update from an artist and I rebuild my atlas, the options (dimensions/border/padding) I've set on all the sprites get reset. Is there any way to have these preferences adjust themselves when the atlas is rebuilt? Or is this something that has been added in a recent version? It's a huge pain to have to go back and make adjustments on each sprite every time I want to update a single element on the menu.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite dimensions/padding/border reset upon building atlas
« Reply #1 on: May 02, 2013, 03:57:20 AM »
Sounds like your artist is nuking all the information every time. NGUI keeps all the data if you update an existing atlas. It won't keep the info if you completely re-create the atlas. Check with your artist and teach him to update instead of re-create. ;)

doppio

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: Sprite dimensions/padding/border reset upon building atlas
« Reply #2 on: May 02, 2013, 01:31:58 PM »
Actually, I'm the one updating the atlas. I don't completely recreate it, I use "Add/Update All" button. Is there some other way to do it?

Could it be because this project is still running a ~5-month old copy of NGUI?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Sprite dimensions/padding/border reset upon building atlas
« Reply #3 on: May 03, 2013, 10:05:10 AM »
Possibly. If you update, all the border info is kept as-is.