At first I want to say that I also have posted this as question here Link since I don’t know if this is the right place to post (there is no area for web-development)
I’ve tryed to implement a web-application and accessing out of javascript (web) an method in Unity3D (webplayer). That worked fine with jQuery using the UnityObject2.
My issue is that I don’t want to use jQuery. What I’m using is Mootools. Since the UnityObject2 seems only to be useable in jQuery I need some other way.
UnityObject2.js is built using some jQuery methods as well, so if you really really need/want to use Mootools or plain Javascript you’ll surely need to rewrite that script. Not sure though if you will run into any XSS errors, if that’s going to work at all or maybe even forbidden by Unity.
Guess the time it takes to investigate the JS library and rewrite it is not worth it though, using jQuery for these cases instead would be way easier I guess.
edit: That assumes that there is no jQuery functionality built in to the web player of course, cause if there is, there’s no chance to change that.
Hi,
first, thx for responding!
I really need to write this in plain js / Mootools. As I just heard there is also a UnityObject.js might written in plain javascript whats about it? Any reference on this?
Kind regads!