Search Issue Tracker
Won't Fix
Votes
0
Found in
5.3.4p6
Issue ID
850322
Regression
No
[CanvasGroup] Selectable is still interactable if it's moved to be non-directly parented by non-interactable canvas group
Steps to reproduce:
1. Open attached project
2. Open scene "Main" and run it
3. Notice console: first "True" is printed when button is parented by Interactable canvas group, second "True" is printed after button is moved to be non-directly (CanvasGroup>Container>Button) parented by non-interactable canvas group.
You can also inspect this issue by enabling Debug Inspector and observing that "Groups Allow Interaction" is true.
Note: If button is re-parented to be a direct child (CanvasGroup>Button) of non-interactable canvas group then IsInteractable returns False as it should.
Workaround: Override Button and add following method to the script:
protected override void OnTransformParentChanged()
{
OnCanvasGroupChanged();
base.OnTransformParentChanged();
}
Reproduced with: 5.3.1f1, 5.3.7f1, 5.4.2p4, 5.5.0b11, 5.6.0a3
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Articulation Body with 'Revolute' Joint Type has erratic behavior when Upper Limit is set to above 360
- WebGL Player fails to render Scene when Terrain with Detail Mesh is added and WebGPU Graphics API is used
- Inconsistent errors are logged when different types are passed into the Query "Q<>" method in UIToolkit and the ancestor VisualElement is null
- Crash on GetMaterialPropertyByIndex when opening a specific Scene
- Discrepancies in the styling are present when using a TSS file instead of a USS file in custom EditorWindow
gyst
Oct 17, 2018 23:26
It's a shame that Unity won't fix this, especially when a workaround is provided. Thanks for the workaround though. It works like a charm.