- Home /
Question by
Pandiux · Aug 26, 2012 at 12:48 AM ·
buildfileautomaticallydatapath
How can I automatically add a file to Application DataPath on build?
Well, my game reads some data from a text file in Application.dataPath, but each build I need to add that file. Isn't there any way Unity can add it automatically each build?
Comment
Answer by Sirithang · Aug 26, 2012 at 12:21 PM
You can use Post Build Script : http://docs.unity3d.com/Documentation/Manual/BuildPlayerPipeline.html
Infortunatly not supported on Windows. But as the page explain, you can write an Editor script (there is even an example in this doc page that do what you want), and build throught this menu entry.
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Missing additional configuration xml files after build 0 Answers
Mac/Web buils size? 1 Answer
Build Error : GetFileByPath... 1 Answer
Can I change Application.dataPath? 1 Answer