-
Notifications
You must be signed in to change notification settings - Fork 2
TexturePacker plugin
TexturePacker plugin make easier working with atlases for TexturePacker users. If you are using TexturePacker you should definitely add this plugin in your build.gradle.
...
apply plugin: "flair.texturepacker"
...
In order to work command line tool from TexturePacker need to be installed
This will add task to publish your atlas .tps files under texturepacker group.
This will also create a tps file under src/main/atlases.

This file is already configured to publish your atlas in resources (res) folder, so you may just start drag&dropping images in the corresponding atlases/main folder and compile your app (without having to run TexturePacker program).
You may create as much tps file you need they'll be all process when compiling. Platform and variant folders support this as well , this means you may create atlases folder in your src/{platform/variant} folder, these atlases will be process only for the corresponding platform/variant.