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

AssetServer::load_folder does not return enough information to be useful #8562

Open
alice-i-cecile opened this issue May 6, 2023 · 2 comments
Labels
A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use

Comments

@alice-i-cecile
Copy link
Member

Bevy version

0.10.1

What you did

Called AssetServer::load_folder, attempting to validate that all of my assets are loading as part of a CI check.

What went wrong

Rather than receiving any identifying information about the nature of these handles (such as the asset loader used, or their path), it's a vec with no additional metadata.

Additional information

Users can then use these handles in AssetServer::get_load_path to retrieve the metadata.

This is not obvious to do: handles need to be categorized immediately upon storage to be useful for most workflows.

@alice-i-cecile alice-i-cecile added A-Assets Load files from disk to use for things like images, models, and sounds C-Usability A targeted quality-of-life change that makes Bevy easier to use labels May 6, 2023
@viridia
Copy link
Contributor

viridia commented Sep 9, 2023

Now that we have LoadedWithDependencies, dealing with loaded folders may be more tractable.

@RyeToastyO
Copy link

RyeToastyO commented Oct 2, 2023

This feels related to #2291 but not exactly the same.
Having better information and control over asset loading would be great!

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-Usability A targeted quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

No branches or pull requests

3 participants