Controlling Unity with a server

Usually unity applications are controlled by keyboard keys. What I wanted is control my application with a server. It will be sending strings to my Unity application.

It’s possible to do that? Please, give me some light!

So your game usually reacts to key presses, or button presses.

In unity this is usually done by polling the ‘Input’ interface in the Update cycle.

Instead, you can have a socket connection (or any other type of connection between server/client), and poll that for the input events instead. And your server would just send signals that a button was pressed/held/released.

You may come into issue with anything that expects specific hardware… like input fields. With this we get into much more complicated setup that is often OS specific.