Facebook Badge

Thursday, 20 October 2011

How to embed Unity 3d files in Wix websites

I recently found out that you cannot upload .unity3d files to the wix web servers. After seeing the embedded files on other peoples wix sites I managed to find a work around so that I could view the web player on my site.

Here is what I did;
First of all you need to sign up for a 'dropbox' account which is free, this allows you to host your file and create a link to it.

Once you have your dropbox account you can copy your .unity3d file into your dropbox public folder. Once it has copied you need to right click on the file, select dropbox -> copy public link. (It may be a good idea to past this into Notepad or something for now.)

Back in wix you need to add an HTML widget to your website.
Next you need to open the .html file created by Unity, but you will need to open it in Notepad so that you can copy the code and paste it into the html widget in wix.

Your next step is to look through the code for a reference to your .Unity3d should look something like this;

unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 620, 349);

You should then paste you link that you copied from dropbox over the WebPlayer.unity3d, make sure that the link stays within the quotes ""

After that you should be able to publish your site and then play your Unity Game!
Have a look at my site www.markshires.com

5 comments:

  1. Thanks for the information Mark, I just started using the Wix templates for my website since WIX support flash files ( I was using Microsoft Office 365) . There is still some stuff to add and this was one of them. You can check it out at

    http://creativeinnature01.wix.com/creativeinnature.

    ReplyDelete
  2. Thanks, It works fine and it's simple and well explained!

    ReplyDelete
  3. Replies
    1. It is flash based, I am working on updating it to HTML5 but it is happening to slowly, due to my projects that I am working on.

      Delete