0

UI events propagation

artteq 10 months ago updated by Thomas S. 10 months ago 1

Hi all!

Can anybody please tell or point to a solution with UI events propagation problem? Like in this question:

https://answers.unity.com/questions/784617/how-do-i-block-touch-events-from-propagating-throu.html?_ga=2.221971864.1665906763.1578848297-1901596469.1577627854

It's been solved in Unity itself but I can't find out how to implement it with Bolt.

Thanks in advance!

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Well, my solution for that problem looks like that: I use Physic Raycasts but before that I use a GraphicRaycaster to check if there's an UI-Element in between. I first tried with EventSystem.current.IsPointerOverGameObject - but that didn't work on my mobile. So I went over to this:

    Just have a look on the "green section". 

    Translated to bolt it should be something like this:


    (untested)