- Home /
Possible to communicate from HTML to unity standalone app?
Hi,
i would like to know if there´s a way to start an unity-standalone application which can communicate to a HTML page ? For example to create all my GUI-controlls within HTML and send the commands to the standalone app... Any ideas how to get this done? Is it possible?
Would be great to know.. Thanks
Answer by Mortennobel · Jul 12, 2011 at 09:10 AM
There is no simple way to do this.
But one solution is to use web-server to delegate commands from the browser to the Unity standalone client.
The browser would communicate with the server using Ajax and the Unity standalone client would use a socket.
Answer by DavidDebnar · Jul 12, 2011 at 09:45 AM
You could try WWW. I think it's the easiest and best form.. You can get any data like images, video and information. But with your GUI I would just get some variables, and depending on them I would create the GUI because you can't get a full funtion, because I'm not totally sure, but I think that it returns text as string.
Answer by yosh · Jul 12, 2011 at 09:34 AM
Cool thanks. The server idea is great. If anybody has further ideas, would be great ;)