SocketCluster / socketcluster

Highly scalable realtime pub/sub and RPC framework
https://socketcluster.io
MIT License
6.15k stars 314 forks source link

Errors in Unity #458

Open pickmeup101 opened 6 years ago

pickmeup101 commented 6 years ago

Installing from nuget, the ScClient namespace is available in the C# environment and compiles success in the Visual Studio. But when run in the Unity, error occurs: "Assets/Scripts/GameManager.cs(8,7): error CS0246: The type or namespace name `ScClient' could not be found. Are you missing an assembly reference?"

I have goooogled a lot, but still can't resolve it. But there's something useful messages: The unity doesn't support the DLL well, the DLL should be copy to Unity's assets Plugins folder. I follow the step, but still get the following error info: "Unloading broken assembly Assets/Plugins/ScClient.dll, this assembly can cause crashes in the runtime."

Any suggestions or if it possible to make a plugin to the Unity's asset store? It will be much easier to use in Unity.


Finally resolve it! I download the source files and compile to dll in my environment, and it works!


FYI: https://github.com/sacOO7/SocketclusterClientDotNet/issues/21

sacOO7 commented 6 years ago

hi @pickmeup101 , great to see it's working 👍

sacOO7 commented 6 years ago

Is there any special request to add this feature in unity? Like having a readymade dll available in the client?

pickmeup101 commented 6 years ago

Hi @sacOO7, As I know, in Unity, most developers are used to using the Asset Store (https://assetstore.unity.com/) to find and download resources. So compared to the dll, I think it will be much compatible and simple to have an asset in the Asset Store. FYI: https://unity3d.com/asset-store/sell-assets

PS. Waiting for the feature of "WaitForAuth". FYI: https://socketcluster.io/#!/docs/api-scchannel-client

Thank you very much!

BrittMcDanel commented 5 years ago

@sacOO7

A readymade dll would be very nice. Thanks!