Post my game on the Blog

Hi
I have my game build for WebPlayer, now I want it to be displayed on my blog. I tried using Gayasoft gadget but it didn’t work for me. Then i tried taking the source code from the player and pasting as a HTML, and it also didn’t work. Does anyone has another way to this.

  • Felipe

You will need to save your “WebPlayer.unity3d” in the same folder where your blog page will be and embed the file in to your blog post and use javascript function to call it.
Here is the code.

Your div tag where you will see the unity game.

And the Javascript functions

	<script type="text/javascript" src="http://webplayer.unity3d.com/download_webplayer-3.x/3.0/uo/UnityObject.js"></script>
	<script type="text/javascript">
	<!--
	function GetUnity() {
		if (typeof unityObject != "undefined") {
			return unityObject.getObjectById("unityPlayer");
		}
		return null;
	}
	if (typeof unityObject != "undefined") {
		unityObject.embedUnity("unityPlayer", "WebPlayer.unity3d", 600, 450);
		
	}
	-->
	</script>

I hope this is what you were looking for.

Dins