Libgdx Texturepacker ^new^ Jun 2026
import com.badlogic.gdx.tools.texturepacker.TexturePacker;
For professional workflows, you should automate packing. By adding a task to your build.gradle , every time you compile your game, the textures are automatically repacked if the source images have changed. This ensures your assets are always in sync with your code. Key Settings to Master libgdx texturepacker
For a studio moving from prototypes to production, moving raw assets into a TexturePacker workflow is the standard step to ensure the game runs at 60fps on mobile hardware. import com
TexturePacker automatically detects and processes 9-patch images, a critical feature for scalable UI elements. Key Settings to Master For a studio moving
This is a killer feature. It removes all transparent pixels around your sprite, making the file smaller, but keeps the "offset" data so the sprite still appears in the correct spot in-game.
If the input sprites exceed the maximum allowed texture size (e.g., 4096x4096), the packer does not fail or scale assets down.