- Home /
Question by
MaxLohMusic · Feb 06 at 04:54 AM ·
builddatapath
How to prevent unity build from deleting existing/custom files in application datapath
I have a giant exe file/folder which I need my game to call. So I put this game in the Application.dataPath so make sure it can be in a reliably found location. But, every time I press build, it's deleted, because Unity deletes existing files/folders and replaces with only its own resources. I want the custom files like the giant exe file to not be deleted when I press build. Otherwise I have to copy it in every time I build again.
I also don't want to put this in Assets folder which can be built to StreamingAssets because of needless duplication (there is no use for looking at it in Unity) and also it had so many files that it was stuck on importing and I had to restart Unity.
Comment