I have managed to get a webgl unity game working on WordPress, although note that you will need to have your own hosted WordPress, not one from WordPress.org. to make it work I had the unity build files added to my Dropbox public folder (should also work if files are hosted on same hosting as site) using a plugin called iframe. With this you simply write in the text box [iframe src=“insert public address of file here” width=“1000” height=“900” scrolling=“no” style=“margin-left:-35px;”] and it should work
I got it to work by FTP’ing the TemplateData and Release folders under the wp-content/uploads folder. Then I created a page and added the following code in a code snippet element for my theme.
<pre><p class="header"><span>Your Game Name | </span></p>
<canvas class="emscripten" id="canvas" oncontextmenu="event.preventDefault()" height="600px" width="960px"></canvas>
<div class="logo"></div>
<div class="fullscreen"><img src="../wp-content/uploads/TemplateData/fullscreen.png" width="38" height="38" alt="Fullscreen" title="Fullscreen" onclick="SetFullscreen(1);" /></div>
<div class="title">BreakThoseBricks</div>
<p class="footer">« created with <a href="http://unity3d.com/" title="Go to unity3d.com">Unity</a> »</p>
<script type='text/javascript'>
var Module = {
TOTAL_MEMORY: 268435456,
errorhandler: null, // arguments: err, url, line. This function must return 'true' if the error is handled, otherwise 'false'
compatibilitycheck: null,
dataUrl: "../wp-content/uploads/Release/Default WebGL.data",
codeUrl: "../wp-content/uploads/Release/Default WebGL.js",
memUrl: "../wp-content/uploads/Release/Default WebGL.mem",
};
</script>
<script src="../wp-content/uploads/Release/UnityLoader.js"></script>
<script src="../wp-content/uploads/TemplateData/UnityProgress.js"></script>
<link rel="stylesheet" href="../wp-content/uploads/TemplateData/style.css">
<link rel="shortcut icon" href="../wp-content/uploads/TemplateData/favicon.ico" />
</pre>