UI Resources are path dependent

I’ve just moved some resources (PNGs, USS) to different folders in a test UI-project - and noticed that it breaks the whole UI.

It seems that the references used in the UXML are text based and include path information for example style="background-image: url(/Assets/HUD-UIToolkit/heart.png) which explains why the UI breaks when resources move.

Isn’t this a serious design flaw? Shouldn’t the references be to the asset database?

Yes. We’re aware of the issue. The current plan is to support GUID/FileID asset references when authoring UI assets with the Builder. We’ll also leave the last known asset path in there, to make things easier to review and merge.

1 Like