- Home /
Rename a folder via code
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? 
               Comment
              
 
               
               
               Best Answer 
              
 
              Answer by karl_ · Mar 17, 2014 at 02:10 PM
AssetDatabase.Move
https://docs.unity3d.com/Documentation/ScriptReference/AssetDatabase.MoveAsset.html
Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                