assetpack icon indicating copy to clipboard operation
assetpack copied to clipboard

Question - is it possible to create bundles dynamically based on explicit file paths?

Open neilsarkar opened this issue 6 months ago • 1 comments

Hi there, thanks for the amazing work on pixi and assetpack.

For a game I'm working on, I need to generate texture atlases that have some overlap between assets, eg: (simplified)

characters
   - char_a_idle.png
   - char_a_walk.png
ui
   - button.png

and I would like to create texture atlases that look like:

{
  "uiBundle": {
    "paths": [
      "characters/char_a_idle.png",
      "ui/button.png"
    ]
  },
  "gameplayBundle": {
    "paths": [
      "characters/char_a_idle.png",
      "characters/char_a_walk.png",
      //...
    ]
  }
}

is the folder structure always the source of truth?

would the appropriate workaround be to create a temporary folder structure with char_a_idle.png copied to both ui{m} and gameplay{m}? or is there some way to take the list of file paths as input to my texturePacker pipe?

neilsarkar avatar Jun 25 '25 15:06 neilsarkar

+1. Having the folder structure be the source of truth is super annoying. It would be great to have a more conventional approach to configure the bundles.

jhm-ciberman avatar Sep 11 '25 00:09 jhm-ciberman