https://github.com/naxa1ka/uxmlsrcfixer
The package that automatically fixes template references inside UXML files when they are moved.
https://github.com/naxa1ka/uxmlsrcfixer
uielements uitoolkit unity unity3d uxml
Last synced: about 1 month ago
JSON representation
The package that automatically fixes template references inside UXML files when they are moved.
- Host: GitHub
- URL: https://github.com/naxa1ka/uxmlsrcfixer
- Owner: naxa1ka
- License: mit
- Created: 2024-10-14T20:02:29.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-10-15T18:18:28.000Z (over 1 year ago)
- Last Synced: 2025-10-10T07:16:03.935Z (9 months ago)
- Topics: uielements, uitoolkit, unity, unity3d, uxml
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Description
This package addresses an issue in Unity UI Toolkit where moving UXML files breaks references to templates within those files, causing Unity to log warnings.\
The package automatically updates template paths inside UXML files when they are moved.
## Usage
After installation, the package works automatically. When you move UXML files, template references will be updated without any action required on your part.\
[It](https://github.com/naxa1ka/UXMLSrcFixer/blob/master/Assets/Plugins/Nxlk/UXMLSrcFixer/UxmlAssetPostprocessor.cs) works by using the [AssetPostprocessor](https://docs.unity3d.com/ScriptReference/AssetPostprocessor.html).
Also, during the first installation, you may need to manually call the update of all UXMLs.


## Install
1. Open the Package Manager from `Window > Package Manager`
2. `"+" button > Add package from git URL`
3. Enter the following
* https://github.com/naxa1ka/UXMLSrcFixer.git?path=Assets/Plugins/Nxlk/UXMLSrcFixer#tag
Now: https://github.com/naxa1ka/UXMLSrcFixer.git?path=Assets/Plugins/Nxlk/UXMLSrcFixer#1.1.1