Search Issue Tracker
By Design
By Design in 6000.5.X
Votes
0
Found in
6000.0.67f1
6000.3.8f1
6000.4.0b8
6000.5.0a6
Issue ID
UUM-134474
Regression
No
The UIElements "GeometryChangedEvent" is not invoked when modifying "VisualElement.style.translate"
How to reproduce:
1. Open the attached ”IN-129846.zip” project
2. Enter Play Mode
3. Open UI Toolkit debugger (Window → UI Toolkit → Debugger)
4. In UI Toolkit debugger window, click the "Pick Element" button
5. In Game window, click on the red square
6. In UI Toolkit debugger window, in “Styles” dropdown click on “Show all“ button (it’s located near the search field)
7. Find and set the “left” property to 100px
8. Notice that the message "OnGeometryChanged is called!" is logged to the Console
9. Find and set the “translate” property’s “x” value to 100
10. Observe the Console window
Actual result: No message is logged to the Console
Expected result: The "OnGeometryChanged is called!" message is logged to the Console
Reproducible with: 2023.3.0a2, 6000.0.67f1, 6000.3.8f1, 6000.4.0b8, 6000.5.0a6
Could not test with: 2023.1.0a1, 2023.2.0a1 (in UI Toolkit Debugger “translate” property is disabled)
Reproducible on: macOS 15.3.2 (24D81) (M1 Max)
Not reproducible on: No other environments tested
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:
This is by design. Translate does not change the geometry and that's its main advantage. It means many elements can be translated without incurring the performance hit that comes with geometry changes (including the sending of GeometryChangeEvents).
Resolution Note (6000.5.X):
This is by design. Translate does not change the geometry and that's its main advantage. It means many elements can be translated without incurring the performance hit that comes with geometry changes (including the sending of GeometryChangeEvents).