VisualElement with click through

Hi there.

To prevent clicking through VisualElements I’m using EventSystem.IsPointerOverGameObject check. Transparent elements catch clicks, invisible allow them to go through. That works great for both UI Toolkit and Unity UI.

But I’m struggling to figure out how can I mark certain visible VisualElements as click through. Make it transparent to recasts somehow? I need help figuring this out.

I’m using new input system, Unity 2021 LTS.

1 Like

https://discussions.unity.com/t/823470

3 Likes

Thank you, that worked!

1 Like