Hello, In Tool kit button works fine but unlike the normal UI button the click is not blocked by the button It interacts with the button and goes through it makes it difficult to add it in Point and Click games
Hello! The behavior you're describing has been fixed already, it's just not out with the package yet (it requires Unity 2021.1). If you use UI Toolkit directly from your Unity installation on 2021.2 you should see that clicks don't go through there either. Hope this helps!
Whether the ClickEvent is triggered on a VisualElement that is rendered below depends on their hierarchy. I found that all parents elements also trigger the ClickEvent. So if you want a parent NOT to receive this event, restructure your UI such that the element is not a parent anymore. Case 1: CommonParent |_OuterButton |_InnerButton In this case, a ClickEvent on InnerButton will also trigger the ClickEvent on OuterButton because the event is propagated upwards. Similarly, hover and focus states of USS are propagated upwards. This means OuterButton is hovered if InnerButton is hovered. Case 2: CommonParent |_OuterButton |_InnerButton In this case a ClickEvent on InnerButton will not trigger OuterButton. The buttons are siblings such that the propagated event will not pass OuterButton. Of course the layout now needs to be different. For my case, I can use absolute positioning for InnerButton to get the same visual layout as in case 1. Hope that helps.