Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
1
Found in
2021.2
2021.2.0f1
2022.1
Issue ID
1377689
Regression
No
UI Toolkit Theme Style Sheet doesn't update when it has been changed more than once through script
Reproduction steps:
1. Open the attached project
2. Open "Assets/Scenes/SampleScene"
3. Enter Play Mode
4. Press on the red UI element
5. Press again on the same (now green) UI element
Expected result: the UI element changes back to red
Actual result: the UI element stays green
Reproducible with: Built-in (2021.2.1f1, 2022.1.0a14)
Could not test with: 2019.4.32f1 (UI Toolkit not supported), 1.0.0-preview.18 (2020.3.22f1, 2021.1.28f1) (console errors)
Note:
- after pressing on the UI element the console logs that the Theme was changed
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 (fix version 2022.2):
Fixed in: 2022.2.0a3
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.1f1
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.3f1