Search Issue Tracker
Fixed
Fixed in 6000.0.59f1, 6000.2.6f1, 6000.3.0b3, 6000.4.0a1
Votes
0
Found in
6000.0.57f1
6000.2.4f1
6000.3.0a6
Issue ID
UUM-116673
Regression
No
Code generation fails to prefix the fully qualified reference with global:: when a property is tagged with [UxmlAttribute] or [UxmlObjectReference] that contains a similar namespace segment as the current class's namespace
Reproduction steps:
1. Open the attached project "ReproProj"
2. Check the Project window
3. Notice the folders called "MyLibrary.SomeLibrary.Extention" and "SomeLibrary"
4. Observe the Console
Expected result: No namespace Errors exist
Actual result: Namespace Errors like “Unity.UIToolkit.SourceGenerator\Unity.UIToolkit.SourceGenerator.UxmlSerializedDataGenerator\MyLibrary.SomeLibrary.Extension.UxmlObjectExample.gen.cs(27,62): error CS0234: The type or namespace name 'SomeClass' does not exist in the namespace 'MyLibrary.SomeLibrary“ are present
Reproducible with: 6000.0.57f1, 6000.2.4f1, 6000.3.0a6
Testing environment: Windows 10 Enterprise 21H2
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
- Terms of Service agreement checkbox is invisible under specific OS system themes (UI Accessibility)
- Tile Palette: "Create New Tilemap" dropdown area is displayed in several colors
- Input.mousePosition stops syncing to touch input when using "DownloadHandlerTexture" in WebGL build
- UI Builder canvas doesn't update element styling accordingly when changing Active Theme for some Editor Authoring elements
- Selector Value buttons are not aligned with parameters in UI Builder
Add comment