I have a console or winforms application that I want to act as a controller to a Unity application. Sending and receiving messages in both ways is enough for me. What is the best way of doing this?
If you’re using Pro version then you can use sockets, your app as TcpListener and the the Unity connects to it as client. Or you can have a WebBrowser component in your WinForm (to a local HTML page with your Unity web control) and control it sending Javascript functions to it.
I’m using windows exe and wondered if there is a way to message without using ports as they tend to create problems with firewalls, or other programs using them. Anyway I’ve used UDP sockets when I found windows messages were a bit complicated for me.