well that is just great, I see that for security reasons, this is the case, but I need to output to a text file, is there some other way
In the webplayer? No, aside from saving it to a server.
–Eric
I have a huge issue with this behaviour. I recently upgraded from Unity2 and I build a web player and a standalone version of my app. The standalone version of the app saves to a local file, whereas the webplayer saves to a database.
Used to work a treat, now it is broken. Even if I do if(Application.isWebPlayer) return; the compiler will still dumbly deny the existance of the requested methods. The clear solution in my mind is to use C# directives to shut up the compiler appropriately.
i.e.
#if !WEBPLAYER
// standalone-only code
#endif
Are there any preprocessor definitions enabled to allow me to do such things? or is it the case that I really actually have to fork my project and code things in parallel now?
Cheers!
EDIT:
Answering my own question with:
http://unity3d.com/support/documentation/Manual/Platform%20Dependent%20Compilation.html
the error here can also yield from 2.0 subset and full 2.0
in the subset, for some reason 3.3 or 3.4 started to not contain readallbytes and writeallbytes anymore