<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Kevin,</div><div><br></div><div>To do so you will have to do a c/c++ plugin to unity. This require the Unity3D pro version.</div><div>The best way to connect the c/c++ side to mono(c#) side is to hook up C# delegates which you pass to the c/c++ side. They will basically end up as function pointers on the c++ side (I can send you code samples offlist if you need them). Doing this you will have a good way to pass data from the c++ side up to your client. The other way around (ie C# -> C) is trivial to fix.</div><div><br></div><div>However, I have only done this on the desktop. I'm a little bit unsure if c plugins to unity is supported on ios (since ios dont allow dynamic libs)? (dont know if android have any such restrictions).</div><div><br></div><div>Anyhow this works great for me ;-)</div><div><br></div><div>best regards</div><div>/Emil</div><div><br></div><div><br></div><br><div><div>On Jun 13, 2012, at 21:00 , <a href="mailto:enet-discuss-request@cubik.org">enet-discuss-request@cubik.org</a> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; ">I'm using enet to handle udp communication.  It's really a good lib, thanks!<br><br>I've successfully integrated enet on server side. Our client is on Unity3D, developed with C#, and will run on IOS and Android.<span class="Apple-converted-space"> </span><br>However, C# is not fully supported in Unity.  I don't know how to pass the required struct to enet, or enet call back to c# with the result.<br><br>Is there anyone who has experience on using enet in Unity3D? Any suggestion will be appreciated!<br><br>Thanks,<br>Kevin.</span></blockquote></div><br></body></html>