Loading a scene with resources (StandardMaterial and Mesh) #7604
Unanswered
oilandrust
asked this question in
Q&A
Replies: 1 comment 2 replies
-
I think I need to use gltf meshes because |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use the scene loading facilities of Bevy, I want to build a small in game editor that can save the scenes with DynamicScene::serialize_ron and then load it and spawn a DynamicSceneBundle
I can serialize the scene but the assets are serialized with some id:
"bevy_asset::handle::Handle<bevy_render::mesh::mesh::Mesh>": (
id: Id("8ecbac0f-f545-4473-ad43-e1f4243af51e", 10857144605983285726),
),
And when I load the scene and look at the entities in the inspector it says the handle "points to no asset"
r/bevy - Loading a scene with resources (StandardMaterial and Mesh)
How can I serialize the Mesh along with the scene so that it is found when loading the scene? Do I need to serialize the resources myself and save them to another file that I load before the scene?
Or what is an alternative way to do that?
Any help appreciated.
Beta Was this translation helpful? Give feedback.
All reactions