assetpack
assetpack copied to clipboard
Question - is it possible to create bundles dynamically based on explicit file paths?
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?
+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.