Tasharen Entertainment Forum
Support => NGUI 3 Support => Topic started 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.
-
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.
-
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 :(
-
Hmm... strange.
-
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?
-
If you have GLES 1.1 / ARMv6 targeted, then yes -- the limit is 1024x1024.
-
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!