bevyengine / bevyengine/bevy

`AssetServer::load_folder` does not return enough information to be useful

Open
#8,562 2 comments 0 reactions 0 assignees View on GitHub
A-Assets C-Usability
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

0.10.1

## What you did

Called [`AssetServer::load_folder`](https://docs.rs/bevy_asset/0.10.1/bevy_asset/struct.AssetServer.html#method.load_folder), attempting to validate that all of my assets are loading [as part of a CI check](https://github.com/Leafwing-Studios/Emergence/pull/746).

## 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`](https://docs.rs/bevy_asset/0.10.1/bevy_asset/struct.AssetServer.html#method.get_handle_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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.