I have got a project that must works in Web Player and PC standalone.
This project must product images from Render Texture.
The Web Player will output it with WWW while the PC standalone will output it with System.IO.File.
Is there a #define to dispatch the code for each Platform because System.IO.File is not available on Web Player.
Thanks a lot in advance.
Yes, you have:
UNITY_STANDALONE_OSX Platform define for compiling/executing code specifically for Mac OS (This includes Universal, PPC and Intel architectures).
UNITY_STANDALONE_WIN Use this when you want to compile/execute code for Windows stand alone applications.
UNITY_WEBPLAYER Platform define for web player content (this includes Windows and Mac Web player executables).
the full doc is here