How to Embed a Unity Game on Any Website

Embedding a WebGL game onto your website has never been simpler! If you've ever embedded a YouTube video, you can do it. You only need basic HTML skills.

Example

For example, here's an game embedded directly on our blog. Click the play button to try it!

1) Build your game for WebGL

Check out this quick tutorial about how to build your game for the web if you don't already know how to do it.

For this example, let's assume that we've named our build "WebGLBuild".

Screen-Shot-2017-10-20-at-9.47.52-PM

2) Upload your game to the web

Go to https://simmer.io/upload and sign up for a free account if you don't already have one.

Drag your "WebGLBuild" folder onto the drop area.d4e4qeqogxrz
You don't need to zip the folder or change anything.

Once you upload and save, fill out some simple information about the build, and select a screenshot to continue.

Screen-Shot-2017-10-20-at-9.56.13-PM

3) Embed the game on your website.

Your game is now on the web! The final step is to embed it on your page.

Click embed:
Pasted_Image_10_20_17__10_01_PM

Then copy the code to your clipboard.

Screen-Shot-2017-10-20-at-10.06.57-PM

Paste the <iframe... embed code into your site's HTML code.

You can also modify width and height in the style attribute if you want your game to display at a different size.

Pro tip: If you want the game to autoplay without requiring a click, add the following code to the url attribute of the iframe &autoplay=true.

Here's a codepen example if you'd like to play around with it:

Screen-Shot-2017-10-20-at-10.29.25-PM

Join dozens of other early adopters using SIMMER to embed games on their own website. Don't delay, embed today!

Still working on your game? Stay tuned here.