- Home /
Renaming files compiled
For example I compile a project and put it "Test.exe" . When compiling the notice that besides Test.exe is the folder Test_Data. How can i rename the folder and files without giving an error ?
Comment
Answer by DaveA · Feb 24, 2014 at 05:30 PM
http://docs.unity3d.com/412/Documentation/ScriptReference/PostProcessBuildAttribute.html
and use the File and Path class to find and rename the files
string path = Path.GetDirectoryName(pathToBuiltProject) + "/" + Path.GetFileNameWithoutExtension(pathToBuiltProject)+"_Data";
With this , I can rename folder "Test_Data" with "Test_Game" and files in this folder ?
Your answer
Follow this Question
Related Questions
Renaming the *_Data folder 2 Answers
Folder exists, yet "Data folder not found: There should be folder next to executable" 9 Answers
Unity game in the _data folder 0 Answers
About the "Preview_Data" folder 0 Answers