Skip to content
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

Add a default impl for On #24

Open
alice-i-cecile opened this issue Apr 19, 2024 · 1 comment
Open

Add a default impl for On #24

alice-i-cecile opened this issue Apr 19, 2024 · 1 comment

Comments

@alice-i-cecile
Copy link

This would be useful to construct bundle types with On components that have no effect.

I'm running into this while trying to construct ButtonBundle equivalents with On<Pointer<Click>> and On<Pointer<Hover>> fields.

@alice-i-cecile
Copy link
Author

Ah, there appears to be an impl but it's quite restrictive: E must impl Default + EntityEvent. This may just be a limitation downstream in bevy_mod_picking then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant