Quantcast
Viewing latest article 3
Browse Latest Browse All 20

How to embed Web Player on Wix.com with the widget HTML iFrame/Embed?

I added in the webPlayer.html file under: u.initPlugin(jQuery("#unityPlayer")[0], "webPlayer.unity3d"); following line: unityObject.embedUnity("unityPlayer", "https://www.dropbox.com/s/xxxxxxxxxxxxxxx/webPlayer.unity3d", 640, 360); It doesn't work. It seems easy but it doesn't load my game. I don't know why. I wish it can run on my Wix.com website. There are UnityObject and UnityObject2. Maybe this is a problem. I should use UnityObject2. However,is there something like UnityObject2.embedUnity? Probably no. I changed the full code. I deleted the line: unityObject.embedUnity("unityPlayer", "https://www.dropbox.com/s/xxxxxxxxxxxxxxx/webPlayer.unity3d", 640, 360); We should use unityObject2 only with jQuery. Maybe it will be clearer with the full code: Unity Web Player | Zombie Soldiers from Swamps

Unity Web Player | Zombie Soldiers from Swamps

I hope it will help. The problem is that I can't use UnityObject2. There's jQuery. Alas, I have no experience with jQuery. I see that it's a new topic because I don't see jQuery and UnityObject2 tags. Yes, my all questions are hard to answer. I see that I will be forced to learn jQuery :). How to use it with Javascript. The error is **"Invalid Data File. Data file is corrupt.Not a Unity Web Player file."** The file seems good ( I uploaded second time). And it is webPlayer.unity3d. Any ideas?

Viewing latest article 3
Browse Latest Browse All 20

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>