- Home /
Using DLLS in a Webplayer
I have a problem, using DLLS in my Webplayer game. In my Project I have a folder named "Plugins" where DLLS should go, and there the System.Data.dll and System.Web.Services.dll is located.
The result, should be connecting to my online mssql database and returning a value from a table. It does this perfectly in the Editor, but when I run it in Webplayer, nothing happens, I don't even get any errors.
According to the Webplayer log found in the AppData for Unity Webplayers, it says that it loads them if I understand it correctly?
Non platform assembly: C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Data.dll (this message is harmless)
Loading C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Data.dll into Unity Child Domain
Non platform assembly: C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Web.Services.dll (this message is harmless)
Loading C:\Users\Kevin\AppData\LocalLow\Unity\WebPlayer\player\Stable3.x.x\System.Web.Services.dll into Unity Child Domain
Anyone been out from this problem before? Is there a fix for it?
Do you have unity pro? I have a feeling that dll plugins in webplayer are pro only.
EDIT: according to this - http://docs.unity3d.com/Documentation/$$anonymous$$anual/Plugins.html
"On the desktop platforms, plugins are a pro-only feature. For security reasons, plugins are not usable with webplayers."
though maybe for managed dll's it is different, I'm pretty sure I've used managed libraries on 'desktop platforms'.
According to this fellow, .NET assemblies located in the Plugins folder can be used in Webplayer http://answers.unity3d.com/questions/32017/database-creation-without-dll-file.html
hmm, might be completely incorrect but just looked at an old project of $$anonymous$$e (not for webplayer) but I had to add the dll System.Configuration to get it to build properly, it worked in the editor without it but no the build. Sounds similar to your problem.
$$anonymous$$aybe.. You know where this file is located?
On windows you can find it in:
Program Files or Program Files(x86)]\Unity\Editor\Data\$$anonymous$$ono\lib\mono\2.0
Your answer
Follow this Question
Related Questions
Why can't I build Web Player in Unity while I have no problems with building standalone versions? 2 Answers
Sending and receiving variable-length arrays to and from DLL 0 Answers
Webplayer includes some DLL's for no apparent reason 1 Answer
WWW Request runs in Editor but not in Webplayer 1 Answer
System.Data.dll Assembly reference problem when built as webplayer 2 Answers