Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow Loading Multi-dot Extensions for Asset Files #1276

Closed
zicklag opened this issue Jan 21, 2021 · 0 comments · Fixed by #1277
Closed

Allow Loading Multi-dot Extensions for Asset Files #1276

zicklag opened this issue Jan 21, 2021 · 0 comments · Fixed by #1277
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Feature A new feature, making something new possible

Comments

@zicklag
Copy link
Member

zicklag commented Jan 21, 2021

What problem does this solve or what need does it fill?

I have a game where many of the different types of assets will all be YAML files, but with different schema and corresponding Rust structures. For example, I may have a dude1.character.yml and a weapon2.weapon.yml file.

What solution would you like?

It would be nice if Bevy asset loaders could be configured to match on the multi-dot file extension. So that I could register a custom asset loader that will load all character.yml files, instead of having to do character-yml files, just to differentiate the different type of YAMLs in my project.

What alternative(s) have you considered?

I can work around it for now just by adding syntax highlighting associations for the character-yml file format, but it's not ideal.

Additional context

The biggest motivation is to keep the system and my IDE treating the .character.yml files as actual YAML and not getting confused when it sees a .character-yml file.

zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 21, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 22, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 22, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 22, 2021
@Moxinilian Moxinilian added A-Assets Load files from disk to use for things like images, models, and sounds C-Feature A new feature, making something new possible labels Jan 25, 2021
zicklag added a commit to katharostech/bevy that referenced this issue Jan 25, 2021
cart pushed a commit that referenced this issue Jan 25, 2021
Process Asset File Extensions With Multiple Dots
Fixes #1276
rparrett pushed a commit to rparrett/bevy that referenced this issue Jan 27, 2021
Process Asset File Extensions With Multiple Dots
Fixes bevyengine#1276
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Feature A new feature, making something new possible
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants