Skip to Content
defold-typescript libraries
defold (official)

defold/extension-texturepacker

A .tpatlas resource type for atlases exported from the TexturePacker tool, with an editor integration, a Bob build plugin, and a Defold exporter for TexturePacker. A .tpatlas works like a regular .atlas, including animations, but its images come from the exported .tpinfo file.

No Lua API — content, shaders, build-time tooling or engine-side native code only.

  • GitHub: defold/extension-texturepacker — pinned to 2.7.0 (released while Defold 1.12.3 was current)
    1. Pick a release from defold/extension-texturepacker releases and add its Source code (zip) URL (or a packaged .zip asset, if the library ships one) to game.project under [project] dependencies, then Fetch Libraries in the Defold editor.
    2. Install the exporter in TexturePacker.
    3. Export a .tpinfo file.
    4. Create a Texture Packer Atlas in the editor and point it at that file.

Engine APIs

The skins example declares resource atlas properties and swaps a sprite image at runtime with go.set.

On this page