Skip to content

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

@neilsarkar

Description

@neilsarkar

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions