Search Issue Tracker
By Design
Votes
0
Found in
2020.3.44f1
2021.3.16f1
2022.1.24f1
2022.2.2f1
2023.1.0a24
Issue ID
UUM-21942
Regression
No
UI Toggle group losing its state when clicking elsewhere
How to reproduce:
# Open the user attached “Repro_2020.3.38f1-1380641.zip“ project
# Enter Play Mode
# Click between the different Toggle buttons
# Click on the Button named “Button“
Expected result: When the toggle button “is ON” property is set to true the color stays green
Actual result: The toggle button color is grey even though the “is ON” property is set to true
Reproducible with: 2020.3.44f1, 2021.3.16f1, 2022.1.24f1, 2022.2.2f1, 2023.1.0a24
Reproducible on: Windows 10 (Intel)
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
Resolution Note:
Closing this as designed.
We are aware of this design flaw that is specially present with the combination of the ToggleGroup component's state and the Selectable's state. As is, current they do not share the same states which is why they doesn't drive one another. Unfortunately, updating this behavior would cause a lot of regressions on existing projects. While it's not the desired response you may be expecting, a workaround would be a good way to achieve your desired outcome. One example would be to create a function that finds the active item from the ToggleGroup and assign the active item's target graphic color to the toggle's selected color and reset back to normal those that aren't.