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
- VFX appears white and lacks color in Preview window when created and observed in HDRP project
- “There is no data available for the selected frame.” appears in the Timeline section after closing Target Frame Time dropdown
- Unity Version Control window opens when right-clicking the icon on the main toolbar
- [Android] Native Crash on TilemapRendererJobs
- Character text is not bold in the title of GameObjects in the Inspector when naming using specific language characters
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.