Skip to content

makesites/jquery-unity3d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$.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

Resources

Stars

Watchers

Forks

Packages

No packages published