- Home /
Create / preserve file in asset folder.
Hi there!
When I build a project in unity, I get the .exe and a _Data folder. I have 2 files in my Assets folder which i want to be build into th _Data folder.
Is this possible?
At the moment i manually copy / paste them after building, which is kind of lame :/
Answer by Statement · Apr 27, 2012 at 11:50 PM
Maybe you want to use Resources folder instead?
(What are you trying to do, concretely?)
See also Loading Resources at Runtime
The two files i have:
1: A simple .txt file with a url to a server inside. 2: A customisable gamedata file, which i can edit to tweak the gameplay.
The problem is, that I want to be able to edit the two files AFTER build, so during a build, i just want unity to copy those two files into the _Data folder, ins$$anonymous$$d of whatever it is actually doing :P
Answer by Orion_78 · Apr 29, 2015 at 04:02 PM
You can manually copy your files/folder with a post process build :
http://docs.unity3d.com/412/Documentation/ScriptReference/PostProcessBuildAttribute.html
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Any way to let users create scenes or prefab in one project and load them at runtime in another? 1 Answer
What are the minimum file types I'll need to import for using 3d assets? 1 Answer
What is the .asset format specifications ? 1 Answer
A way copy my extra files to the Build? 2 Answers