Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 10 days 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 (2 months ago)
- Default Branch: master
- Last Pushed: 2024-10-15T18:18:28.000Z (2 months ago)
- Last Synced: 2024-10-18T02:46:38.018Z (2 months ago)
- Topics: uielements, uitoolkit, unity, unity3d, uxml
- Language: C#
- Homepage:
- Size: 54.7 KB
- Stars: 0
- 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.
![изображение](https://github.com/user-attachments/assets/7a1a669a-f44d-49f7-b7d0-ad46d49e3975)
![изображение](https://github.com/user-attachments/assets/44d56a25-c9d1-4939-a95b-88745d00faf0)## 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#tagNow: https://github.com/naxa1ka/UXMLSrcFixer.git?path=Assets/Plugins/Nxlk/UXMLSrcFixer#1.1.1