Automatically Fix Broken UXML Template References in Unity UI Toolkit

Hi everyone,

I’ve been working extensively with Unity UI Toolkit and noticed a recurring issue: when moving UXML files, the references to templates within those files often break. This results in Unity logging warnings and can lead to UI elements not displaying correctly.

blabla.uxml (1,2): Semantic - The specified URI does not exist in the current project : Asset reference to GUID ‘02da54a89431ddf40afc7d2de8e6540b’ was moved from ‘blablabla.uxml’ to blablablabla.uxml’. Update the URL ‘blablabla.uxml?fileID=someid&guid=someguidtype=3#sometype’ to remove this warning. UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

To solve this problem, I have developed a package that automatically updates the paths to templates inside UXML files when they are moved.

How to Get It:

Installation Instructions:
Detailed steps are available in the README file on GitHub.

Would greatly appreciate any feedback from the community. If you try out the package:

  • Let me know how it works for you.
  • Report any issues or bugs on the GitHub repository.
  • Suggestions for improvements are always welcome!
2 Likes