EDIT: Opps,…I may of posted this in the wrong spot,…UNity Scripting may of been more appropriate?
So I have a webplayer page,…but I am using my domains PhP site builder. On it, I can use JS widgets.
I managed to copy/paste ( awesome skill, right!) the below code:
http://docs.unity3d.com/Documentation/Manual/WorkingwithUnityObject.html#initPlugin
into the widget and it looks like it ‘would’ work wonderful. I.E. webplayer within my site page, surrounded by nice pictures and instructions, but of course, it gives me errors. Like ‘Failed to download data file’
I am guessing this code below:
jQuery(function(){
u.initPlugin(jQuery("#unityPlayer")[0], "WebPlayer.unity3d");
});
is where I need to point it to my WebPlayer.unity3d file. but I do not know how to do that, syntax-wise.
QUESTION: how to I point this code to my data file, which is saved on a subFolder within my domain?
I tried replacing
u.initPlugin(jQuery(“#unityPlayer”)[0], “WebPlayer.unity3d”);
with
u.initPlugin(jQuery(“#unityPlayer”)[0], “http://www.MYGAMESITE.com//Unity/GAME/WebPlayer.html”);
but bleh,…
any help is appreciated.