Unity web player imbed for blogs and stuff

I made a few PHP scripts so that I can very easily imbed web players in my blog. Here is how simple I managed to make it:

  1. Create and upload the webplayer and an image to describe the webplayer’s content (Screenshot) to a folder on your server with matching names, eg: Wambo.unity and Wambo.jpg
  2. Paste this code into something like a blog or html document.
<iframe src="http://yourwebsite/yourwebplayers/button.php?file=Wambo&version=2.x" marginheight="0" frameborder="0" height="300" scrolling="no" width="400"></iframe>

Where version dictates whether it is a 1.x or 2.x webplayer.

To set it up initially, you need to upload these three php scripts to the same folder as you are uploading the web players: http://yogware.bluegillstudios.com/Files/ThreeScripts.zip

When I made that I wasn’t thinking about making it really adaptable and for everyone, so the sizes are all hard coded and some options are missing… So I’ll also attach this all purpose web player imbed script that gives you full control: http://yogware.bluegillstudios.com/Files/EasyUnity.zip

Also, pinging whoever is in charge of the forum at UT; what do you think of adding this functionality to the forum so we can upload webplayers directly to our forum posts?

God this would be amazing. :smile: Do it now.

That would mostly be me and it makes for an interesting suggestion. I’m (still) compiling a list of forum updates to make and after I discuss this with others we’ll see if it makes the final list of changes to make (and then sort out when those changes will be implemented).

Nice work Forest!