Search Issue Tracker
Fixed in 2021.3.17f1
Fixed in 2021.3.X, 2022.2.X, 2023.1.X, 2023.1.0a24
Votes
0
Found in
2021.3.0f1
2022.1.0b16
2022.2.0a10
2023.1.0a20
Issue ID
UUM-3471
Regression
Yes
[UIToolkit] Math assignment operators done in a numeric field don't return the expression result
How to reproduce:
1. Open the user's attached "repro UIToolkit" project
2. Open the "SampleScene" Scene
3. Select the "Test" GameObject in the Hierarchy
4. Enter "/=5" assignment operator in the "Test (Component) -> UI Toolkit -> X" numeric field in the Inspector
Expected result: "UI Toolkit -> X" field value is set to 1 (the division expression result)
Actual result: The expression result is 0 when a multiplication-related assignment operator is passed, or the addend if sum-related
Reproducible with: 2021.3.0f1, 2022.1.0b16, 2022.2.0a10
Couldn't test with: 2019.4.37f1, 2020.3.33f1 (the '=' symbol isn't writable in the numeric fields)
Note: The bug isn't reproducible with IMGUI fields with some versions. The Expected result can be observed in the not reproducible versions of case 1399184
Comments (3)
-
hannahwalters9087
Apr 04, 2024 05:20
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
Resolution Note (fix version 2023.1):
Fixed in 2023.1.0a24
Resolution Note (fix version 2022.2):
Fixed support for compound assignment operators for UI Toolkit numeric fields (IntegerField, LongField, FloatField, DoubleField)
Resolution Note (fix version 2021.3):
Fixed support for compound assignment operators for UI Toolkit numeric fields (IntegerField, LongField, FloatField, DoubleField).