makesites / jquery-unity3d

One-liner to embed / interact with Unity3D files using jQuery

Home Page:http://plugins.jquery.com/unity3d/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

$.unity3d()

One-liner to embed / interact with Unity3D files using jQuery

Usage

Target the container you want the unity3d file embedded and call the plugin the traditional way:

$(target).unity3d(); 

The unity3d() method accepts the following options:

  • width - the width of the embedded file (default: 600)
  • height - the height of the embedded file (default: 450)
  • file - the location of the embedded file (default: "WebPlayer.unity3d")
  • params - an object containing extra parameters for the embed code. Currently only "disableContextMenu" is supported...

If no options are passed the default ones will be used

API

In addition, there are a set number of methods to interact with the unity3d file:

  • $.unity3d.get(id) : Returns the unity3d object with the specified id

About

One-liner to embed / interact with Unity3D files using jQuery

http://plugins.jquery.com/unity3d/


Languages

Language:JavaScript 100.0%