I’m using Texture Packer to generate texture atlases and their corresponding JSON definitions.
Today I had to update this texture atlas with new elements, so I replaced the texture, and then imported the JSON again. To my surprise, all the exported sprites had the wrong image now. I assume when they are exported they are linked to a numeric ID generated by the editor itself, not to their JSON “filename” value, which is the value that should stay constant between updates.
This is a big deal, because it means whenever I update my atlas I have to go through it again, export every single sprite and reassign it to every element in the scene. That’s really A LOT of work for a simple texture atlas update.
So, am I doing something wrong? Is there a way to keep atlases updated in a simple way, or should I expect to face this problem every time I need to make any update to an image that belongs to a texture atlas?