0

Is this challenging and where do I begin?

I have Unity 3D and the Xavier Control Panel for Emotiv. On the Emotiv website there is a wrapper for Unity 3D but I would like to try and connect my control panel to a game myself. I'm sorry for the vagueness but I really do not know where to begin, my Java knowledge is low but am willing to learn.

Thanks!!

1 Answers1

0

Unity uses C# and Javascript/Unityscript not Java. Maybe you meant Javascript? Anyways, since you refused to use the paid wrapper from Emotiv,you can make yours from scratch using TCP but that will take time.

Create a local TCP server on the Unity side, create a client on the emotive. Connect to the server, send and receive data from Unity to the client created on the other side with the help of the Emotiv SDK.

Programmer
  • 121,791
  • 22
  • 236
  • 328
  • Thanks! Yes I did mean JavaScript and its not that I refuse, I just want to learn how to do this myself - is using a server actually the easiest way? Thanks for pointing me in the right direction – Keelan Eeles Jun 16 '16 at 20:45
  • @KeelanEeles For this, you **must** use C# because of tcp socket. I am not sure they are available in Javascript. You will get more help if you use C# than javascript later on. And yes, server and client seems to be the easiest way I know about. Since you are new to unity and C#, this will take you forever. This is a server code http://stackoverflow.com/a/36526634/3785314 . You can make your client code from that. This guy https://www.youtube.com/watch?v=CcCdOjlnNUM did his with socket/udp and it worked for him. Good luck! – Programmer Jun 16 '16 at 21:23
  • @KeelanEeles If this answered your question you can go ahead and accept it as answer. Thanks. – Programmer Jun 19 '16 at 00:06