- Home /
Which namespaces are supported in each platform?
Is there a definitive list of which namespaces are available in each platform?
When I compiled for web player, I got bitten by the:
"ArgumentException: The Assembly System.Web is referenced by blah.dll. But the dll is not allowed to be included or could not be found."
I see a few links:
http://forum.unity3d.com/threads/43887-Web-service-call-not-supported-in-Web-Player
"... looks like the webservices rely on System.Environment.MachineName which is a no go as System.Environment is compeletely removed on the webplayer like any machine access..."http://forum.unity3d.com/threads/62932-Build-Issue-Not-finding-base-.NET-libraries
"... however, that doesn't mean it will be allowed to be used even if it does exist, especially for the web player."http://forum.unity3d.com/threads/40610-Solved-Lidgren-works-on-*.EXE-but-not-in-web-browser
"... check if lidgren relies on System.IO, System.Web Services or another removed class"http://forum.unity3d.com/threads/49188-Uploading-screenshot-to-server-from-WebPlayer
"the webplayer uses the WWW networking of the browser and is restricted by it too. also there are whole namespaces missing in the webplayer that can have an impact (like no file stuff, no System.Environment, ...)"http://answers.unity3d.com/questions/19765/why-is-the-system-drawing-namespace-not-supported-in-unity-3-0-beta
About System.Drawing, etc.
But I don't see any definitive list anywhere. Does one exist?
I thought .dll's weren't usable for web builds... I'm probably wrong though.
I believe that only external dll's are unusable. System.Web would be part of the mono library, which I believe is included unless Unity does not include all the namespaces in the web player(I don't deal with webplayers often, but if its anything like a standalone or mobile, then the mono library and the UnityEngine are both included.)
Note that just because $$anonymous$$ono has DLL doesn't mean Unity will include it for you. I asked this question earlier today to try and get to the bottom of this ... http://answers.unity3d.com/questions/36384/how-should-i-add-references-to-additional-mono-assemblies
Answer by Mike 3 · Mar 22, 2011 at 06:09 AM
http://unity3d.com/support/documentation/ScriptReference/MonoCompatibility.html
Small warning - the webpage is HUGE, and takes quite a while to load
A very useful page. (It seems almost impossible to find without a direct link, though?)
It's on the front page of the scripting reference - http://unity3d.com/support/documentation/ScriptReference/index.html
Thanks! What platform(s) does the $$anonymous$$icro column refer to? I haven't seen that before.
I believe that's everything besides pc/mac/web (i.e. consoles and mobiles)