Hi,
I’m able to click on a canvas button that is beneath UIDocument.
How can I fix this ?
It seems that Canvas which is below UIDocument has a higher priority when it comes to event handling.
Cheers ![]()
Hi,
I’m able to click on a canvas button that is beneath UIDocument.
How can I fix this ?
It seems that Canvas which is below UIDocument has a higher priority when it comes to event handling.
Cheers ![]()
Hi marekzd, we have a feature in progress that should resolve this interoperability problem (likely in preview 14). Stay tuned ![]()
Hi AlexandreT-unity,
What’s the status of this issue?
Did you manage to implement this “in progress” feature ?
There is an update here: Does new UI Toolkit Interfere with UGUI Event Systems? - Unity Engine - Unity Discussions
Hi,
I’m using UIToolkit 1.0.0-preview.14 and switched to Unity 2021.1.7f1.
I’ve removed all StandaloneInputModule components from the scene.
PanelRaycaster and PanelEventHandler components showed up under EventSystem as expected.
But I’m still able to click through UIToolkit view.
Did I miss something ?
Additionally on Unity 2021.1.7f1 the following error occassionaly shows up, when I’m playing with UIToolkit views:
It doesn’t seem to be directly related with click pass through problem, but maybe will give you some hint…
Will this UIToolkit interoperability with UGUI eventually show up in Unity 2020 LTS ?
Cheers ![]()
Hi marekzd. If you want UITK to stop clicks from reaching UGUI, you need to have the StandaloneInputModule in your scene. When UGUI’s EventSystem is there, UITK will pick up on that and use the StandaloneInputModule-generated events to drive its own events.
We don’t plan on having the UITK+UGUI interop in 2020 for the moment, no.