I have a game object with actions by click. In some places above GO I have a gui elements. How to stop event propogonation after detect clicking in gui? Or maybe some workarounds?
How this looks (i clicked to button and trees also react):
I have a game object with actions by click. In some places above GO I have a gui elements. How to stop event propogonation after detect clicking in gui? Or maybe some workarounds?
How this looks (i clicked to button and trees also react):
You need to indicate that the input is consumed by returning true in the on_input() function that handles the action (in this case your button). Check the Input manual and the section named Consuming Input.
I missed this feature in docs, thank you!
@sicher: We should make a note of this in the on_input() API reference
Yes, definitely!