caizhikun wroteDo I need to put all weapons to the spine atlas and set the active weapon visible and hide all others
That is the simple and straightforward way to do it, and the way I would suggest to start. If you have hundreds of weapons that don't fit in an atlas page AND using multiple atlas pages causes too many draw calls, only then would I consider something fancier. Eg, you can determine which images you need to display your character's configuration, then generate an atlas at runtime (see PixmapPacker) using only those images.