Just found FileUtil.ReplaceFile in the documentation. I know unity accepts web-addresses in path-names which should make downloads possible with that command. Is there also a way to save (raw-)data with a similar method? E.g. saving some variable’s content to standard-filetypes.
I saw the other post already - they use some standard-.NET-method to write to a file. AFAIK it has two disadvantages:
It cannot be used in standard-scripts (only in editor-scripts, please correct me if I’m wrong)
It only writes txt-files (one line at a time)
You cannot output non-.txt-files with that, even though they gave their file a .dat-extension in the example. What I wanna do is using unitys copy-function for files to copy a data-stream instead of a file. So instead of a file-path I wanna give it something else. In linux-world they use the “|” (pipe-symbol) and block-devices for things like that. So my question is what else can I use as pathname? Are there special system-variables or keywords I can use?