Search Issue Tracker
Fixed in 2022.2.X
Fixed in 2021.3.X, 2022.1.X
Votes
0
Found in
2021.2
2021.2.7f1
2022.1
2022.2
Issue ID
1392844
Regression
No
[UI Toolkit] Visual element Transform values don't reset when setting them through styles
How to reproduce:
1. Open the user-submitted project
2. Open the scene "SampleScene" (Assets/Bugs/ResetTransformStylesIssue/Scenes/SampleScene.unity)
3. Enter Play mode
4. In the Game view window, observe the red square and click the button "Set transform styles"
5. Click the button "Try to reset styles..." and observe the red square
Expected result: The position, scale, rotation and opacity of the red square is reset
Actual result: The opacity of the red square is reset
Reproducible with: Built-in (2021.2.8f1, 2022.1.0b3, 2022.2.0a1)
Could not test with: 2019.4.34f1 (UI Toolkit Package is unavailable), 1.0.0-preview.18 (2020.3.26f1) (Transfrom values cannot be set through styles)
Note: Transform values are reset when the Game view window is resized
Comments (1)
-
Midiphony-panda
Jan 21, 2022 16:30
Interested in backporting it to 2021.2 (or at the very least 2021 LTS)
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
- SystemInfo.get_graphicsDeviceName() is generating garbage GC Alloc when using Metal graphics API
- Crash on D3D12CommonShader::ApplyGpuProgram when attaching material which samples "_UnityFBInput0" to "Full Screen Pass Renderer Feature" Component
- SpeedTree meshes and objects count differs when comparing the numbers in the Player with the Editor
- Model and Prefab Preview icons are not updated after upgrading associated Materials to URP
- Game view is rendered white when viewing the Editor with HDR display and Post Proccesing is enabled on the Main Camera with 2D URP
Resolution Note (fix version 2022.2):
Fixed in: 2022.2.0a3
Resolution Note (fix version 2022.1):
Fixed in: 2022.1.0b14
Resolution Note (fix version 2021.3):
Fixed in: 2021.3.2f1