https://github.com/foriequal0/unityassetsortonsave
Sort Unity asset file on save to make merge easier
https://github.com/foriequal0/unityassetsortonsave
Last synced: about 2 months ago
JSON representation
Sort Unity asset file on save to make merge easier
- Host: GitHub
- URL: https://github.com/foriequal0/unityassetsortonsave
- Owner: foriequal0
- Created: 2015-05-12T18:14:05.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-05-12T18:51:39.000Z (about 10 years ago)
- Last Synced: 2023-08-04T07:25:36.114Z (almost 2 years ago)
- Language: C#
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Unity Asset Sort On Save
Sort Unity asset files on save to ease merge difficulty.
This UnityEditor script will sort your Scene(.unity) and Prefab(.prefab) files automatically right after you save file.## How it works
* Get Asset files to be saved using AssetModificationProcessor.OnWillSaveAssets()
* Watch until Unity finally saves. (Known to be scrambled by Unity)
* Sort by entity tag (looks like "--- !u!12 &12345678")
* Reload silently.## Tested?
Unity 5. simple scenes & prefabs.## Effective?
I don't know.## Pull Request
Welcome## Reference
* http://www.gamasutra.com/blogs/AaronSmith/20140917/225779/Unity_Scene_Diff_Tool.php