Blender_bevy_components_workflow
Blender_bevy_components_workflow copied to clipboard
Add support for references between entities.
Fixes #187.
The issue has more context on the idea behind this PR.
I am leaving a TODO for the docs, examples and tests. I will get around to that soon.
For a short walkthrough of what this looks like in practice, users just have to:
- Add the
GltfRefMapPlugin. - Implement
FromGltfReffor each type. - Add the
GltfRefPlugin<T>for each type.
bevy_registry_export can export the registry to Blender which will include:
GltfRefTarget- Holds a string that can be used to identify this entity.GltfRef<T>for eachT- Holds a string that can be used to pick which entity should be associated withTon this entity.
I realized I should be using the SceneInstance component to determine where Gltf roots are, hence the force push.