Libgdx Texture Packer May 2026

// Don't forget to dispose! atlas.dispose(); The texture packer uses your folder structure to create region names.

Run this main method every time you change your assets. Once you have player.atlas and player.png in your assets folder, load and use them: libgdx texture packer

raw-assets/player/ ├── idle/ │ ├── frame1.png │ └── frame2.png └── run/ ├── run01.png └── run02.png You can access atlas.findRegion("idle/frame1") or atlas.findRegions("run") . // Don't forget to dispose

// (input directory, output directory, atlas file name) TexturePacker.process(settings, "raw-assets/player", "android/assets/", "player"); // Don't forget to dispose! atlas.dispose()