When building a project, unity creates a _Data folder.
Is it possible to have unity MOVE files from the Assets folder to this _Data folder, during build?
I have two files, which I need POST-build:
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.
At the moment i manually copy / paste them after building, which is kind of lame
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, instead of whatever it is actually doing
I cant be the first person with this kind of problem.
I am not looking to be guided step by step, i was just hoping that somewhere in the huge unity API, there was a neat little feature to actually do this, without having to code it all “from scratch”
From your first post, the only “direction” you actually gave me, was to create a whole new “build settings”-dialog.
I could do that, sure, but thats just a waste of time and not really what im looking for…
I’ll stick to copy / pasting manually, as the feature does not seem to exist…
What part of “We do this for our project as it uses custom level files” did you not get? It’s the same thing as you are doing. I even told how we do it. Implement it in a way which complies with your requirements and you are set.
Implement what… You linked a… “…function to programatically create a build of your project.”
With this function, I can set the scenes, a path, build target and build options.
Uhm… Yea, as i politely said previously, I dont see how this can solve my problem, without creating a whole new build-settings-dialog, (a dialog to actually set a build-destination, select which scenes to include, and so on).
But this is the only thing you’ve actually shown me so far, after 5 posts…
Guy please… Don’t patronize me, and dont call it the “right direction”, when ive said multiple times that i dont want to recreate the whole build-dialog…
You have hardcoded parameters… No thanks…
If you use the build-in “build-settings”-dialog, it wont work (aka. you remade the whole build-functionality).
So get off your high horse… If you had just shown me what you actually ment ealier, I could have said “meh…” and moved on…