- Home /
Controlling Unity3d From Outside
Hi, im new in working with unity3d and i have question. Is there a posibility to control a compiled UnityGame via Java or Javascript? We are planning using Unity as a kind of VR and want to controll it via an outside script.
Thx
Answer by Mike 3 · May 26, 2010 at 08:37 PM
You can send messages from javascript in a webpage pretty easily, see here: http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html
Answer by duck · May 27, 2010 at 04:07 PM
In addition to the standard web-page-javscript communiction that is possible in Unity, you could also use Socket Connections if you wanted to communicate directly between a Java app and your Unity app.
Because Unity uses Mono, you have access to all the standard .net Socket features, and you can search for general C# socket tutorials to get started using them. You just need to be aware of the implications of using multiple threads when it comes to unity.