Author Topic: Atlas Referencing Issue  (Read 3259 times)

Suspect

  • Guest
Atlas Referencing Issue
« on: August 15, 2012, 04:41:40 PM »
Hi there, I'll start off with saying the tool is a dream to work with... except this recent issue i've been running into.

So i'm working on an iOS game with 3 atlases, SD, HD, and UD.  I've assigned a reference atlas and reference font to all of my widgets.

The issue i'm having is when i go into one of my atlases properties and change the border or something, every widget using that sprite switches to whatever atlas i'm currently changing.

For instance, i have a button which is using my reference atlas, and by default i'm pointing that toward my HD atlas. If i go into my SD atlas and change the border of that sprite, now every button with that specific sprite has the SD atlas on it, instead of my reference atlas. This also happens when i build the game, at random some widgets will just pick a different atlas to respect.

Suspect

  • Guest
Re: Atlas Referencing Issue
« Reply #1 on: August 15, 2012, 06:15:07 PM »
So I just discovered if I open up a new scene, or any scene without any ngui widgets, make my changes, then return to the scene, the bug doesn't occur.  It'll make things doable for me now, but if anyone knows why this is happening that'd be great to find out!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Atlas Referencing Issue
« Reply #2 on: August 15, 2012, 09:07:34 PM »
When you build widgets pick a random atlas? How would they even know about this atlas? Reference atlas works only one way. Unless you set the reference atlas to point to another atlas, then modify that other atlas, nothing should happen.

Suspect

  • Guest
Re: Atlas Referencing Issue
« Reply #3 on: August 15, 2012, 09:51:54 PM »
They weren't actually picking one at random. They were sticking with the one I was switching to if it wasnt the original one referenced. Basically my default one is my HD atlas. If I tested out an sd resolution then some of the widgets would have the sd atlas attached after stopping the editor. I know now not to test my reference atlas swapping script in the editor.

The first issue was happening every time without fail. Is that a weird thing that only I've experienced? Like I've mentioned I have just been going into a new scene to make any adjustments to the atlas borders.