-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Open
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorS-Waiting-on-AuthorThe author needs to make changes or address concerns before this can be mergedThe author needs to make changes or address concerns before this can be merged
Description
Bevy version
0.18
What you did
// Load a labeled sub-asset that doesn't exist.
let handle = asset_server.load::<AssetType>("asset#non_existent_subasset");
// Or load a labeled sub-asset that does exist, but is not of type `WrongAssetType`.
let handle = asset_server.load::<WrongAssetType>("asset#subasset");What went wrong
I expected AssetServer::get_load_state(handle) to eventually return LoadState::Failed with an appropriate error. But instead it gets stuck in LoadState::Loading.
Metadata
Metadata
Assignees
Labels
A-AssetsLoad files from disk to use for things like images, models, and soundsLoad files from disk to use for things like images, models, and soundsC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorS-Waiting-on-AuthorThe author needs to make changes or address concerns before this can be mergedThe author needs to make changes or address concerns before this can be merged