Copyright © 2026 Unity Technologies
uGUI: Reverted the default behavior for UI elements that implement IPointerEnter/Exit back to what it was before: when hovering a child component, it also sends the hovering event to the parent(s). Also added a field (sendPointerHoverToParent) in the BaseInputModule that can be set to false to change the behavior to: when hovering a child component, it doesn't send the hover event to the parent(s).
uGUI: Reverted the default behavior for UI elements that implement IPointerEnter/Exit back to what it was before: when hovering a child component, it also sends the hovering event to the parent(s). Also added a field (sendPointerHoverToParent) in the BaseInputModule that can be set to false to change the behavior to: when hovering a child component, it doesn't send the hover event to the parent(s).
uGUI: Reverted the default behavior for UI elements that implement IPointerEnter/Exit back to what it was before: when hovering a child component, it also sends the hovering event to the parent(s). Also added a field (sendPointerHoverToParent) in the BaseInputModule that can be set to false to change the behavior to: when hovering a child component, it doesn't send the hover event to the parent(s). Fixed in 2021.3.6f1
Reproduction steps:
1. Open the attached project
2. Enter Play Mode
3. Hover the cursor over the white part of the Button in the Game View
4. Hover the cursor over the red square of the Button in the Game View
5. Hover the cursor back to the white part of the Button in the Game View
6. Observe the Button
Expected result: the white part of the Button should be highlighted
Actual result: the white part of the Button is not highlighted
Reproducible with: 2021.2.17f1, 2021.2.19f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11
Not reproducible with: 2019.4.38f1, 2020.3.33f1, 2021.2.16f1
Note: this only happens when the Button's "Target Graphic" is set to a Button's Child Image GameObject and not to the Image Component attached to the Button
Issues you vote on will appear here