lsalzman / enet

ENet reliable UDP networking library
MIT License
2.71k stars 669 forks source link

Can this support the unity game engine? #173

Open scc172fly opened 3 years ago

scc172fly commented 3 years ago

I want to use it in the game client made by unity, but I don't know how to do it. Do you support it?

lucaheft commented 2 years ago

The easiest way would probably be to use a C# implementation like this: https://github.com/nxrighthere/ENet-CSharp

meiry commented 2 years ago

its not implementation its wrapper to the native lib

leizhiren commented 1 year ago

hi @scc172fly Have you figured out how to use it in Unity? I also tried the https://github.com/nxrighthere/ENet-CSharp, and can't work normally. Unable to communicate with the server. The server uses the latest enet official source code.

bjorn commented 1 year ago

The server uses the latest enet official source code.

Since the README.md of Enet-CSharp says "This is an independent ENet implementation with a modified protocol for C, C++, C#, and other languages.", you probably shouldn't expect it to be compatible with ENet. If you want to use ENet-CSharp, maybe you should figure out how to use ENet-CSharp on your server as well.