How to handle clicks on different objects differently? #18650
Replies: 2 comments
-
You've set the width and the height of the text to 100%, meaning it covers the entire screen and is catching all of the clicks Try setting a background color on the text and you'll see what I mean. If you remove the width and height it should work fine, if it still doesn't work try adding PickingBehavior {
should_block_lower: false,
..Default::default()
} which will stop the text from blocking pointer hits |
Beta Was this translation helpful? Give feedback.
0 replies
-
I just realized you've solved this as I sent that but I'll leave it up in case anyone else is having this same issue |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
So, let's say I have one
Text
and oneRectangle
. And I'm adding separateobserve
systems. But for some reasonon_txt_click
system is always triggers, like it handle every click on any point. And I can't handle click onRectangle
. My code:How i can handle click on
Rectangle
in this case?Beta Was this translation helpful? Give feedback.
All reactions