Manipulationg unity API through external scripts on web-page.


Can we access unity scene objects from the web page script (the web page in which unity scene is loaded) and also the framework methods on that object.
For example this loads a sphere : GUI.Button(new Rect(20,40,80,20), “Sphere”).

I want to access sphere from web page script and animate it with unity framework functions.

I got unity object by this : u.getUnity(). Now, how can I access sphere object with object “u”?

Between Unity Web Player and the page itself, you have to use Events. That’s the only way to communicate. It works nearly the same as in-unity events. Take a look at the documentation here : Unity Web Player and browser communication