This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Regenerates GUIDs for Unity assets, and replaces all references to them in the scene. | |
// Drop into Assets/Editor or Assets/Scripts, Select Assets in project view, right click, `Regenerate GUIDs/Regenerate` | |
// `Regenerate GUIDs/Regenerate Recursive` will recursively regenerate for asset in any folders selected. | |
// Please know that this can break things, and only use it if you know you have a use case for changing GUIDs in-place. | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; |