Skip to content

save bevy scene #15987

Answered by cherish-ltt
cherish-ltt asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, Bevy does not serialize asset handles. Even if it did, you would need an asset server to deserialize them. I believe this is being addressed by the scene rework described here.

In your case you could filter out the components containing handles with the DynamicSceneBuilder, make a custom component that serializes to an asset path, and then generate the handles with some startup system from your component. You can also forego Bevy scenes and write a custom asset loader that handles a custom serializable asset.
#14281

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by cherish-ltt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant