endel / NativeWebSocket

🔌 WebSocket client for Unity - with no external dependencies (WebGL, Native, Android, iOS, UWP)
Other
1.2k stars 158 forks source link

How can I use it in Unity 2018.1.4f1 #31

Closed Ezharjan closed 3 years ago

Ezharjan commented 3 years ago

When I opened your demo in Unity 2020, I exported a Unity package aiming to use it in Unity 2018, but I encountered incompatibility problems, detail is shown on screenshot below. I know that you have noted in README file about the compatibility problem, but I am hoping to use one just like yours in 2018 version of Unity. May you gitve me some advice? Or may you make it open source and compatible with 2018 version?

图片




Plus, a very funny thing in your demo is that you added RigidBody component onto Camera, camera will be falling down once the scene is played. 图片

endel commented 3 years ago

Hi @Ezharjan,

This library requires that your C# project is capable of importing System.Net.WebSockets (available in the .NET 4.x+ Runtime)

I'm not sure this is possible on Unity 2018. I'd recommend upgrading.

Ezharjan commented 3 years ago

Thanks!