Customizing the Unity Web Player's Behavior

The Unity Web Player allows developers to use a few optional parameters to easily control its behavior in a few ways:

Using UnityObject2 you control those parameters like this:

var params = {
	disableContextMenu: true
};
var u = UnityObject2({ params: params });
u.initPlugin(jQuery("#unityPlayer")[0], "Example.unity3d");

In the above example you'll notice that neither disableExternalCall nor disableFullscreen are specified, therefore their default values are used.

See UnityObject2 for more details.

Page last updated: 2012-10-12