Search Issue Tracker
Fixed in 2021.2.X
Votes
0
Found in
2019.4
2020.3
2020.3.0f1
2021.1
2021.2
Issue ID
1321156
Regression
No
UI Elements Value Change Callbacks for bound fields happen before the new value is applied to the fields
Reproduction steps:
1. Open user's project "UI Toolkit Bug Repro.zip"
2. Open "SampleScene" Scene
3. Click on "Parent1" in the Hierarchy window and look at the Inspector window
4. Change Sorting Layer of "Control Child Settings" Script from "Default" to "Foreground"
5. Notice how child GameObject (red circle) doesn't come to the foreground
6. Change Sorting Layer of "Control Child Settings" Script from "Foreground" to "Background"
7. Notice how child GameObject (red circle) comes to the foreground
Expected result: Upon change of parent GameObject's Sorting Layer, child GameObjects get updated to the same settings as parent GameObject
Actual result: Upon change of parent GameObject's Sorting Layer, child GameObjects get updated to the old settings of parent GameObject
Reproducible with: 2019.4.23f1, 2020.3.2f1, 2021.1.1f1, 2021.2.0a11
Couldn't test with: 2018.4.33f1 (couldn't downgrade to a functioning project)
Notes:
1) Changing Color of "Control Child Settings" Script has the same issue
2) There are additional debug messages in the console after the 4th and 6th steps that show how settings get applied
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
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
- The options modal for which type of Tilemap to create isn't drawn when it has been previously closed until the user moves their cursor
- There are 2 Overlay Menus present in the Tile Palette Window
- Unable to change the Shadow Map resolution for lights via Inspector when 'preserveCachedShadow' is enabled
- Adaptive Probe Volumes are not loaded when Adaptive Light Probes are exported via Asset Bundles and opened on another project
Resolution Note (fix version 2021.2):
Fixed in 2021.2.0a18