Search Issue Tracker

Fixed

Fixed in 2023.2.10f1, 2023.3.0b5

Votes

0

Found in

2021.3.27f1

2022.3.1f1

2023.1.0b20

2023.2.0a17

Issue ID

UUM-39907

Regression

No

Element's namespace is changed when saving the changes through UI Builder

--

-

Reproduction steps:
1. Open the attached “Test Project” project
2. Open “Scripts/UI/Resources/UXML1” Asset
3. Add ‘xmlns:uic=”UI.Controls”’ namespace in line 1
4. Add “<uic:CustomControl />” Element below line 5
5. Open Window > UI Toolkit > UI Builder window
6. Select “Assets/Scripts/UI/Resources/UXML1.uxml” file the “Library” tab
7. Move any element in the “Hierarchy” tab and save the changes
8. Open “Scripts/UI/Resources/UXML1” Asset
9. Observe the Element’s (added in step 4) tag

Expected result: The tag stays the same “uic:CustomControl”
Actual result: The tag changes to “UI.Controls.CustomControl”

Reproducible with: 2023.2.0a17
Couldn’t test with: 2021.3.26f1, 2022.3.0f1, 2023.1.0b19 - No support for “UxmlAttributeAttribute” and “UxmlElementAttribute”

Reproducible on: Windows 10

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.