how do i deserialize components from GltfExtras? #17406
-
im setting custom properties in blender to generate components after the scene is loaded, and thats what i get: {
"game::plugin::Component": "{ \"property_1\": \"value\", \"property_2\": \"value\" }"
} |
Beta Was this translation helpful? Give feedback.
Answered by
alec-deason
Feb 2, 2025
Replies: 1 comment
-
I've just done exactly this. You can take a look at my implementation here: https://github.com/Caudiciform-Studios/gltf_components/blob/main/src/lib.rs Beware that it's largely based on the bevy remote protocol code and I only partially understand how it works and haven't tested it extensively. But it does work for simple cases at least. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Nigless
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I've just done exactly this. You can take a look at my implementation here: https://github.com/Caudiciform-Studios/gltf_components/blob/main/src/lib.rs
Beware that it's largely based on the bevy remote protocol code and I only partially understand how it works and haven't tested it extensively. But it does work for simple cases at least.