SimpleTCP icon indicating copy to clipboard operation
SimpleTCP copied to clipboard

Namespace not available in Unity.

Open Almightygir opened this issue 7 years ago • 3 comments

Hi,

I've compiled to DLL and imported into Unity, but the SimpleTCP namespace isn't available so i can't access any of the SimpleTCP library.

Is there something special i need to do to make this work with Unity?

Almightygir avatar May 09 '18 08:05 Almightygir

Oh, it seems it's because it's targeting .net 4.5, and Unity Editor only supports 3.5, which breaks a lot of functionality.

Almightygir avatar May 09 '18 08:05 Almightygir

Okay so... using the source code directly in Unity (with the editor scripting runtime version set to .NET 4.x equivalent) allows me to use the library, however compiling to to DLL and importing it still doesn't work.

I'm also having trouble setting my server to run a function on DataReceived, i would have thought this functionality would be somewhat standard?

Almightygir avatar May 09 '18 09:05 Almightygir

Unity has its own network handler, see: https://docs.unity3d.com/Manual/UNet.html and https://docs.unity3d.com/Manual/UnityWebRequest.html

using this library for something that's already build into unity seems a bit useless

harleyknd1 avatar Jul 25 '18 08:07 harleyknd1