Replies: 1 comment 4 replies
-
It's not pretty and you lose information but the current solution is to filter out the problematic resources/components manually: let scene = DynamicSceneBuilder::from_world(world)
.deny_resource::<Time<Real>>()
.deny::<CameraRenderGraph>()
.deny::<Exposure>()
.deny::<CameraMainTextureUsages>()
.extract_entities(world.iter_entities().map(|entity| entity.id()))
.extract_resources()
.build(); Ideally, things like However, some types will never be serializable, such as |
Beta Was this translation helpful? Give feedback.
4 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.
-
Hello, I'm studying by making it into a form that transforms while reading Bevy Example.
I wrote the code while looking at Scene Sample, but the following error occurs.
Type 'bevy_utils::Instant' did not register ReflectSerialize
Here's my code.
The intent in the code is to press the keyboard N key several times to create a cube and save it.
However, aside from not loading properly, if you try to save, you will get an error in an unexpected place.
As far as I understand it
The meaning of is to get the Registry Types that have been braked in the app, serialize the entities corresponding to those types, and store them in the form of a string.
RegistryTypes all have Reflect Trait as shown in the code, so this error doesn't make sense to me...
I tried to find out through Googling, but I couldn't find the correct answer.
Thank you for reading, and it would be great if you could give me an answer.
Have a great day
Beta Was this translation helpful? Give feedback.
All reactions