资 源 简 介
Simple Javascript embedding for Unity
UniTool provides a simple interface to handle the installation of the Unity Web Player, as well as giving fine controls for embedding and manipulating individual Unity instances.
Embed Unity with 1 line of javascript
var unity = uniTool.embedUnity("example.unity3d", "unityContainer", 800, 500);
Easily manipulate Unity instances
unity.hide();unity.show();unity.sendMessage();unity.setContainerHTML();unity.unload();
Take control of the embed procedure
```
if (!uniTool.playerIsInstalled())
{
uniTool.addInstallListener(unityInstalledHandler);
uniTool.installPlugin();
}
function unityInstalledHandler ()
{
alert("installation complete!");
}
```
Powerful Flash API
For projects integrating both Flash and Unity, UniTool provides an Actionscript 3 API which exposes all t