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
- Shadows are not cast when the Light's CullingMask and the GameObject's Layer do not match
- Graphics.DrawMeshInstanced does not work when 2D Renderer and 2D Shaders are used
- SpeedTree does not move when using WindZone
- "Undeclared identifier 'LinearToSRGB'" error is thrown when creating a color variable with HDR color mode and assigning a Custom Render Texture target in Shader Graph
- Input System package is missing when creating a new HDRP project
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.