Input pass through node

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Bush2Tree

Hey all,

I have a HUD which displays some data as text. I want users to be able to click on the map beneath the label. However, the label hogs all of the inputs, even though it does not process any of them. Is there a way that I can let the inputs pass by the label?

:bust_in_silhouette: Reply From: PeterA

Probably not the best solution but will do if you don’t find anything else

You can check with wether the mouse is hovering on the label with the signals mouse_entered(), and mouse_exited()

You can then if (click) and (hover), call the function from the map with input the mouse positions.

I’ve done some more digging and I’ve found that the other poster is, in general, correct, but for some reason it’s not working for the specific thing I need–so I have to use your solution ¯_(ツ)_/¯

Bush2Tree | 2020-06-25 07:45

:bust_in_silhouette: Reply From: jgodfrey

I think you can just set the Mouse | Filter mode of the Label to ignore. This should cause it to ignore mouse events, but still allow other controls to receive them.

I’ve done more digging and I’ve found that you are in general correct, but in my particular circumstances for some reason this doesn’t work.

Bush2Tree | 2020-06-25 07:44