Search Issue Tracker
Fixed
Fixed in 6000.0.6f1, 7000.0.0a2
Votes
0
Found in
6000.0.4f1
7000.0.0a1
Issue ID
UUM-73046
Regression
No
"Invalid UXML or USS: System.InvalidCastException" and "ArgumentException: invalid path" errors are thrown and UI Documents become unusable when they are saved with invalid attributes
Reproduction steps:
1. Open the attached “UXML Test Project.zip” project
2. Double-click the "Doc" asset from the Project window to open it in the UI Builder window
3. In the StyleSheets Hierarchy section of the UI Builder window, expand “Doc.uxml” and select the “ui concepts-placeholder” element
4. In UI Builder’s Inspector, click “Add” next to “Bind Function”
5. Add “Double Visual Arg” to the “Inputs” list four times
6. In the StyleSheets Hierarchy, expand further and select the “text” element
7. Click “Add” next to “Bindtextfunction”
8. Add “Double Visual Arg” to the “Inputs” list once
9. Save the document
10. Observe the errors in the Console window
Expected results: No errors are thrown
Actual results: "Invalid UXML or USS: System.InvalidCastException" and "ArgumentException: invalid path" errors are thrown
Reproducible with: 6000.0.4f1
Couldn’t test with: 2021.3.39f1, 2022.3.31f1 (UXMLObject attribute does not exist)
Reproducible on: Windows 10, Windows 11
Couldn’t test on: MacOS (due to the contents of the DLL in the project)
Not reproducible on: No other environment tested
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Inconsistent behaviour when interacting with different dropdown types with pointer events on parent Visual Element
- Hidden GameObjects won't re-enable when they have call "DontDestroyOnLoad" function
- Overlay Canvas are rendered on each split-screen camera when HDR is enabled
- [Android] The Player loses focus when using UnityEngine.Handheld.StartActivityIndicator() with Facebook SDK
- Build fails with "Building Library/Bee/artifacts/MacStandalonePlayerBuildProgram/gahcy/hj9mx3z/951.0 failed with output:..." errors when Scripting Backend is set to IL2CPP
Add comment