Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: juggernate on August 13, 2013, 08:23:01 PM

Title: Can't remove sprite from atlas in 2.6.4
Post by: juggernate on August 13, 2013, 08:23:01 PM
I need to remove a sprite from an atlas...but when I click the X, then the red "Delete" button, I get the "Operation Canceled" popup that says "The selected sprites can't fit into the atlas...". But I'm just trying to remove, not add anything.

I have tried checking/unchecking the options in the Atlas maker and tried deleting different sprites, but I still get the same error.

I just updated to 2.6.4, but I haven't tried this operation for a few versions so I don't know if it is a new issue.
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: ArenMook on August 13, 2013, 08:29:02 PM
Sounds like even after removing the sprite your atlas is still too big for the target device.

Switch your target platform to PC and try again.
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: juggernate on August 13, 2013, 08:45:14 PM
I'm targeting iOS (and Android). I have a 2048 atlas and that has been working on my devices. Why would removing a sprite from the atlas make it bigger?

I changed target to pc/mac like you said and then I could delete the sprite, resulting in an atlas of the same 2048 size, then I could change the target back to iOS and it appears to work fine.

Thanks for the workaround  :) , but it seems a bit tedious to have to change targets just to delete a sprite  :(
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: ArenMook on August 13, 2013, 08:51:58 PM
Hmm... strange.
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: juggernate on August 13, 2013, 08:59:21 PM
I can't make a new one either with all the same sprites (minus what I'm trying to remove). If I target android or ios, it seems to be limited to 1024?
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: ArenMook on August 13, 2013, 09:06:00 PM
If you have GLES 1.1 / ARMv6 targeted, then yes -- the limit is 1024x1024.
Title: Re: Can't remove sprite from atlas in 2.6.4
Post by: juggernate on August 13, 2013, 10:00:54 PM
Ah ok, that was it. I had es1.1 for the Android target and changed it to 2.0 (though I already had 2.0 for iOS which was my active target)
Thanks!