UXML document corruption after deleting a Template instance

Hi, we’ve found an issue with UI Toolkit that is greatly affecting the usability of the tool.

After embedding two or more instances of the same Template inside a UXML document and saving, removing one instance and saving again will corrupt the document.
The “src=” and “guid=” fields of the original instance will be removed and this results in the following error being displayed in the console:

Semantic - 'Template' declaration requires a 'path' or 'src' attribute referencing another UXML file

This is easily reproducible in the latest 6.2.

Here’s a video of the issue.

Hi,
Could you please file a bug report? https://unity3d.com/unity/qa/bug-reporting

Hi,
Bug report submitted with the same title as this topic. Is there any workaround for this issue?

(bug report id IN-121577)

1 Like

We’re experiencing the same issue using 6.2.

Had similar issues on 6.1, but it was less frequent.

We use an incredible amount of templates, and this is crippling our developers at the moment.

Will test with 6.3 tonight.

This was fixed in 6000.2.13f1, confirmed

1 Like