What happened
UI documents are no longer valid if they contain references to other unity ressources (textures, fonts, etc). This a regression from 2022.1a13.
How can we reproduce it using the example you attached
Open attached project.
Go to /Assets/UI
Notice all UI Documents being no longer valid uxml
Open any of the UI Documents and remove references to background-images & fonts ressources in the uxml
Notice UI Document being valid again
Can also be reproduced with empty a15 project:
Create new UI Document via Assets → Create → UIToolkit → UI Document
Add an empty visual element to newly created UI Document
Add any texture to the visual element’s “Background-Image”
Save UI Document
Notice UI Document no longer being valid and null-reference errors
Yes, in the UI Builder. I can see the generated uxml, appears to be the same as a13 - so it doesn’t appear to be a UI Builder code generation issue on first glance.
Wohoo! Aaah, just wished I could leverage a15’s features sooner rather than later. Oh well, I assume we’re talking about release for a17+ probably right? (In two weeks if there’s no additional delays.)
QA came back and said that “Unfortunately we can’t provide you with an issue tracker link due to a duplicate case being private.” Tried a16 and unfortunately the issue is still present. All my UXMLs are broken from a13->a15/a16.
Could you share some insight on when we can expect a fix to land in the alpha for this issue?