NetEase / UnitySocketIO

socket.io client for unity3d.
889 stars 230 forks source link

Unity Web Player #29

Open Flowan24 opened 10 years ago

Flowan24 commented 10 years ago

Hi,

You cann't build a Unity3d Web Player Release, the reason for this is the Security Sand Box of the Web Player (see http://docs.unity3d.com/Manual/SecuritySandbox.html).

The following error message appears when you try to build your Unity3d project on the Web Player Platform: ArgumentException: The Assembly System.Runtime.Serialization is referenced by SimpleJson. But the dll is not allowed to be included or could not be found.... SimpleJson is using Reflections these won't be supported by the Web Player Subset.

At the moment I'm trying to replace the SimpleJson.dll with the SimpleJSON from the Unify Community (http://wiki.unity3d.com/index.php/SimpleJSON). Maybe someone of you could give me some feedback to this decision and/or maybe someone comes up with an other idea.

Best Regards

Flo

Flowan24 commented 10 years ago

Hi, I started to remove the SimpleJson.dll from the project and it turned out that WebSocket4Net.dll is also using the SimpleJson.dll. Therefor I switched to the https://github.com/NetEase/pomelo-unityclient-socket. But this system is also using the SimpleJson.dll. At the moment I'm working on a solution with the pomelo-unityclient.socket and it looks good (https://github.com/NetEase/pomelo-unityclient-socket/issues/12)

Maybe someone of you can write this into the description of the UnitySocketIO that this system isn't suitable for all of the Unity3d supported Release platforms.

Best Regards

Flo