Build post processing: Copy file from resources to build location automatically?

Hello,

I know this has to be possible but I’m at a loss for how to accomplish it. I want to automatically copy a file from my Assets/Resources folder to the data folder of a Windows Standalone build.

Assets/Resources / GameData.xml
should auto-copy to

BUILDROOT / BuildName_Data / GameData.xml

Thanks for any guidance on how to accomplish this!

1 Like

Look at .NET file system stuff. It’s not Unity specific, so there’s bound to be plenty of stuff covering it, it just might not be here. Try searching for something along the lines of “C# copy files” in your search engine of choice, and I 'm sure you’ll get examples.