Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Bradamante3D on September 05, 2013, 05:41:44 PM

Title: Atlas maker: Add/Update does nothing (anymore)
Post by: Bradamante3D on September 05, 2013, 05:41:44 PM
I just upgraded my NGUI version (and restarted Unity).

Now I want to create a new Atlas. I do so, selecting some textures when creating it. However, they don't show up in the list. Create the atlas by hitting the button. Select textures in the folder. The green Add/Update button shows up. Clicking it does nothing. "Texture" button is dark grey and says N/A. There's no error message on the Console. Restarting Unity or saving the scene does nothing.

Is this a new bug or did I forget how to create new Atlases properly?
Title: Re: Atlas maker: Add/Update does nothing (anymore)
Post by: ArenMook on September 05, 2013, 08:06:37 PM
The sprite list is now a drop-down, clicking the header hides or shows the list of sprites. What "texture" button are you talking about?
Title: Re: Atlas maker: Add/Update does nothing (anymore)
Post by: barrenjunk on September 06, 2013, 01:38:30 PM
Greetings.  I just ran across this same problem.  The 'Texture Button' that the original poster is referring to is under the Material button on Atlas Maker.  In previous versions clicking this would bring up the inspector for the texture that the atlas's material referenced.  If I select an existing atlas prefab i am able to see the sprite dropdown you are referring to however I am unable to create a new atlas or add sprites to an existing one.  After creating a new Atlas, selecting textures to add and clicking the Add/Update All button (basically the steps that use to work) I end up with an Atlas prefab and a Material for the Atlas.  However the Texture referenced by the material is blank and no new Texture containing the packed Sprites has been created.  Just to make sure that it was not an issue being caused by another plugin I imported NGUI into a new, empty project but had the same results.

This issue seems to have started when I updated to NGUI 2.6.5b. I'm working with Unity on Windows version 4.2.0f4.  Our game is heavy on the UI side and we do not have access to the Unity 4.3 beta so my only option at this point is to downgrade NGUI.  Any help with this would be greatly appreciated.

Thanks for the help.
Title: Re: Atlas maker: Add/Update does nothing (anymore)
Post by: subvertio on September 06, 2013, 01:48:46 PM
Just noticed you have to click it now, its like a rollout as far as seeing the sprites in a list.
Title: Re: Atlas maker: Add/Update does nothing (anymore)
Post by: Bradamante3D on September 06, 2013, 07:17:54 PM
The sprite list is now a drop-down, clicking the header hides or shows the list of sprites.

Huh, yeah, that was it. Talk about a button in disguise :D

If I select an existing atlas prefab i am able to see the sprite dropdown you are referring to however I am unable to create a new atlas or add sprites to an existing one.  After creating a new Atlas, selecting textures to add and clicking the Add/Update All button (basically the steps that use to work) I end up with an Atlas prefab and a Material for the Atlas.  However the Texture referenced by the material is blank and no new Texture containing the packed Sprites has been created.

I did just that, works fine for me here, once I figured that the list header is a button. Did you save the scene to write the atlas changes? Does the texture look blank to you because you are using a non-transparent shader/material?