-
Beta Was this translation helpful? Give feedback.
Answered by
aevyrie
Jun 17, 2023
Replies: 1 comment 5 replies
-
Highlighting looks at the bevy_mod_picking/crates/bevy_picking_highlight/src/lib.rs Lines 274 to 276 in 1f7df34 For your use case, I think all you need to do is add an eventlistener on your parent to update its |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
cxreiff
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Highlighting looks at the
Interaction
state of an entity to determine what highlight to use (None, Clicked, Hovered).bevy_mod_picking/crates/bevy_picking_highlight/src/lib.rs
Lines 274 to 276 in 1f7df34
For your use case, I think all you need to do is add an eventlistener on your parent to update its
Interaction
component. This isn't handled out of the box because there isn't an obvious way to merge the states of multiple children with conflictingInteraction
states.