-
-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Help wanted: Adding event listener not specified inside the blueprint cause panic #81
Comments
Hi @tungtose !
Possible "solution": |
…82) * feat(bevy_gltf_blueprints): improved error handling for clone_entity * you will now get component name for components that have not been registered & thus cannot be cloned * added a small example (in examples/bevy_gltf_blueprints/basic), just press 'U' at runtime to try to spawn an entity with unregistered components * closes #81
@tungtose , this is now released : Perhaps it would make more sense to leave this issue open , or create a specific one, as I consider this only a stop-gap solution, ideally not every component should need to be registered. |
@kaosat-dev Thank you for quick solution! So for now I just import directly from the gltf file generated from your tool as a quick solution. |
Hi @tungtose just wanted to let you know, that with the release of version 0.6 you can now add unregistered components when spawning blueprints (as in your original bug report with the |
@kaosat-dev I just tested and its work as expected, thank you |
Thank you for the effort you put into making this crate!
I am trying to integrate the spawned blueprint with bevy_mode_picking by adding a listener along with the blueprint like the image below. And there's a cause for panic by clone_entity:
Here is the panic location (line 40):
![image](https://private-user-images.githubusercontent.com/72777913/292838881-c65fcea1-d8b9-4be3-8e4c-01b6afc50e63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MDU2NjIsIm5iZiI6MTcxOTcwNTM2MiwicGF0aCI6Ii83Mjc3NzkxMy8yOTI4Mzg4ODEtYzY1ZmNlYTEtZDhiOS00YmUzLThlNGMtMDFiNmFmYzUwZTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjI5VDIzNTYwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg1MjIyMTAxN2I1NzYyMmVmZGIxMjk5Y2FmOWUwYjI4YzJlNmQ3YWVkMDk5ZmY2ZmY5ZWVhZDYzZmE0NTM4YzcmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.y-aD65cm1QtfWYrRNI7OM3ZUb3lJZP9yNqmpxeuFR64)
I also tried register_type all visible relative components from bevy_mod_picking but still panicked. Am I missing something to make this working?
The text was updated successfully, but these errors were encountered: