I need to rename a folder at compile time. Specifically, as part of a build script.
I’ve tried renaming with the command line then force re-importing assets as well as using an editor script with Directory.Move. Both work, but result in meta file errors and broken links in materials and prefabs. Is there something like AssetDatabase.Rename for folders that I can use?