#LoadedWithDependencies event triggers before meshes are loaded from glb file.

4 messages · Page 1 of 1 (latest)

tepid palm
#

I'm loading a glb file then after it's loaded I'm going to add colliders and such using the meshes,
I've tried using bevy_asset_loader or checking the AssetEvent for LoadedWithDependencies, and it comes back as loaded but no meshes has been loaded yet, then like half a second later I see the model load in on screen.
How would I check and change the state once all the meshes have loaded as well?

flint echo
#

Loading the asset is one thing, unwrapping the scene is another

#

LoadedWithDependencies just means that the Handle<Gltf> is ready to use, after that bevy_scene still needs to clone the hierarchy

#

When the model is ready to view it raises a SceneInstanceReady