NiklasEi / bevy_asset_loader

Bevy plugin helping with asset loading and organization
Apache License 2.0
459 stars 52 forks source link

Check loading state with dependencies #227

Closed NiklasEi closed 2 weeks ago

NiklasEi commented 2 weeks ago

A handle should only be counted as loaded by this plugin when all it's dependencies are loaded.

count_loaded_handles should be using https://docs.rs/bevy_asset/latest/bevy_asset/struct.AssetServer.html#method.is_loaded_with_dependencies

mgi388 commented 2 weeks ago

@NiklasEi I briefly tested that out 1 line change locally, looks to be working 😌

mgi388 commented 2 weeks ago

The failure variable also needs to account for deps too otherwise if a dep fails to load the loading screen infinitely shows rather than transitioning to the error state.