mirror of
https://github.com/bevyengine/bevy
synced 2024-12-23 11:33:06 +00:00
86e2fc53d0
Error message noticed in #1475 When an asset type hasn't been added to the app but a load was attempted, the error message wasn't helpful: ``` thread 'IO Task Pool (0)' panicked at 'Failed to find AssetLifecycle for label Some("Mesh0/Primitive0"), which has an asset type 8ecbac0f-f545-4473-ad43-e1f4243af51e. Are you sure that is a registered asset type?', /.cargo/git/checkouts/bevy-f7ffde730c324c74/89a41bc/crates/bevy_asset/src/asset_server.rs:435:17 ``` means that ```rust .add_asset::<bevy::render::prelude::Mesh>() ``` needs to be added. * type name was not given, only UUID, which may make it hard to identify type across bevy/plugins * instruction were not helpful as the `register_asset_type` method is not public new error message: ``` thread 'IO Task Pool (1)' panicked at 'Failed to find AssetLifecycle for label 'Some("Mesh0/Primitive0")', which has an asset type "bevy_render::mesh::mesh::Mesh" (UUID 8ecbac0f-f545-4473-ad43-e1f4243af51e). Are you sure this asset type has been added to your app builder?', /bevy/crates/bevy_asset/src/asset_server.rs:435:17 ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |