- Home /
Build data path and projects data path on postprocess build.
How do I distinguish the project's data path and the build data path on postprocess build? I want to copy files from project's assets' folder ("Assets/Files") to build data's folder ("*_Data/ Resources"). How do I do it? When I just do this:
File.Copy(Application.dataPath + "/Files" + file, Application.persistentDataPath + "/Resources/");
Unity thinks I want to copy files from ("Assets/Files") to ("Assets/Resources") but I want to copy the files to built application's data folder. How to do it?
Comment
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Can't build for either iOS or Android: Failed to copy/move file 0 Answers
Hiding Unity Cache Files in Android Build 0 Answers
Can I delete additional built files 0 Answers