Communicate with Unity

Hello,

I have been searching quite a while for a solution for my problem but I was not able to find it yet, so you guys are my last hope :slight_smile:

We are trying to create a game with the Oculus Rift, there are two persons involved while playing the game using one pc.

The first person is wearing the Oculus Rift using the Keyboard to move around. The second person is looking at the actual pc display and is using the mouse to manipulate the game with some kind of form(for example a slide button to scale objekts up and down).
So we need the game displayed on the Oculus and a form that can communicate with the game.

The problem is that we dont know how we can communicate with the game.

What we have tried so far:
Saving and reading data from ini file.
Using WPF.

I would greatly appreciate any help!

WPF and INI files… you sure are making it complicated :slight_smile:

I’m not exactly sure what you really mean under “communicate”. You could hook up a midi controller (keyboard, drum machine, bunch of knobs, etc) to your computer and set it up as a COM port device and then use System.Net.Ports to connect to that COM port… It’d be actually pretty cool…

But maybe try setting up a dual monitor display, so that Unity window spans both physical screens, one of them is Oculus. Then configure the oculus camera in your game to render on the left side and GUI camera to render on the right. For the GUI you could use either builtin GUI API or something better like NGUI.

Maybe sockets, you can use them in Unity.