Steps to reproduce:
- Open any Project
- Create a UIDocument Asset in the Project Browser and open it in UI Builder
- Add a Visual Element to the Hierarchy and select it
- For any Property choose "Set variable" in the kabab menu on the left side and set it to any internal Variable
- For any Property choose "Set as inline value" in the kabab menu on the left side
- Undo via shortcut
Actual results: Errors are logged:
"Trying to read value of type Dimension while reading a value of type Function
UnityEditor.EditorApplication:Internal_CallGlobalEventHandler ()"
"Trying to read value of type Dimension while reading a value of type Function
UnityEngine.UIElements.VisualElement:UpdateInlineRule"
Expected results: No errors are logged and action is done without issues
Reproducible with versions: 6000.6.0a3, 6000.6.0a4
Can’t test with versions: 6000.0.73f1, 6000.3.14f1, 6000.4.4f1, 6000.5.0b5, 6000.6.0a2 (No Inline Variables)
Tested on (OS): Windows 11