Unity Ninja Unity 3D Forum
To have exclusive access to all downloads, recourses and links within this forum, a free registered account is required. Just a heads up Wink

You are not connected. Please login or register

Unity Ninja Unity 3D Forum » HELP » Help (General) » unity on the web

unity on the web

Go down  Message [Page 1 of 1]

1 unity on the web on Wed Apr 29, 2015 10:58 am


Member [Lv. 0]
Member [Lv. 0]
Is there an Idiots guide to putting a unity game on the web. I've done searches and tried all the different ways I've found and none seem to work. Some assume I know PHP,HTML, and where to place files, etc. Some just don't work at all. My website uses wordpress. None of the plug-ins work. I even tried using a separate subdomain outside of wordpress.

Can someone publish a:
1. do this
2. do this
last. TA-DA

View user profile

2 Re: unity on the web on Thu Apr 30, 2015 4:26 am


How to embed Unity web player content in Wordpress without plugins

It’s a simple enough process.

Firstly you need your web player files hosted somewhere. Both the .html file and the .unity3d file.
We used our own web host. ( Just needed to edit the mime file types to serve .unity3d files )

We decided to strip some of the formatting from the .html file (e.g. the Header & Footer) but you don’t have to.

Then when you want to embed it you simply use an iFrame.

<iframe id=”" name=”" src=”(htmlfile)” marginheight=”0″ frameborder=”0″ width=”670″ height=”460″ scrolling=”no”></iframe>

The width and height have to at least match that of your built web player, otherwise it won’t fit inside the iframe.

It works by embedding the default web player page into the iframe.

View user profile

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum