I’m looking for a way to write a text-file after building in Unity.
I have an XML file that I’m formatting to a text-file. And what I need to do is save the text-file to the Desktop, and it’s working using the Editor, but after you build Unity doesn’t let you write text-files anymore. Is there a way I can write a file to the desktop that has text in it even after building?
Right now I’m using
File.WriteAllLines(Path.Combine(path,"data.txt"), text.ToArray());