Search Unity

I interact with the WordPress blog engine both here at work as well as at home for my personal blog. Given that WordPress experience, and the fact that I work at Unity Technologies, makers of the Unity Web Player, I guess it’s only fitting that I created a WordPress plugin to allow blog authors to easily include Unity Web Player content in their posts. My point of shame in this is the fact that I created the plugin last Fall and haven’t really done much with it since, my bad!

Example: The Island
Here is an example file that you developers should recognize, it’s a published version of the Island demo we include when you install Unity:

[WP_UnityObject src=”https://blogs.unity3d.com/wp-content/uploads/2009/05/islands.unity3d” width=”640″ height=”427″ altimage=”https://blogs.unity3d.com/wp-content/uploads/2009/05/islands.jpg” css=”http://unity3d.com/u3d.css” /]

Description
The plugin is simple to use and requires some straightforward mark-up tags within your blog post. Those tags are read by WordPress when showing the post and the needed page edits will be made to show your Unity Web Player content. The plugin includes support for both Unity Web Player 1.x and 2.x content. The plugin allows you all the same options as the native object/embed tags so you can enable/disable the context menu or the ability to go fullscreen, to use custom loading screen graphics or to specify your own install prompt image and more.

Download
Please feel free to download my WordPress plugin and put it to use right away:

WP_UnityObject

The download contains a readme file with instructions, have fun!

Edit Note (May 20, 2009): the download link has now been changed as the plugin is available from the Resources area on our website.

27 Comments

Subscribe to comments

Comments are closed.

  1. Hi

    I have been looking for something like this myself, is there a website other than Unity Resources for this plugin? I am looking for info if the plugin supports WordPress 3.x

    Thanks
    Geoff

  2. every time i try 2 download unity web player it downloads 2 about half-way then it says download failed and stops….wtf?

  3. Hey when I go into fusionfall the game resets and it says unity had and error. Then the game just launches again by itself and resets again.

  4. why dont you answer anyones question about fusionfall?

  5. Hey, I play FusionFall on Cartoon Network which requires Unity Web Player. But Lately, Whenever I play, or TRY to play fusionfall, It crashes and I get a message saying that Unity Web Player had an error. Do you know anything about that?

  6. hi im rawr, well thats how people call me..
    question: why doesnt the unity webplayer for fusionfall works?…i try getting into fusionfall and it said error unity webplayer is having some problems…how do i fix it? please tell me right away! PLEASE?

  7. Hey Tom will this work with fusionfall because the beta unityplayer wont work when i try to play.

  8. space_9: yes, this plugin is available for anyone using WordPress that wants to include Unity content within their posts. You can download it from here:

    http://unity3d.com/support/resources/assets/unity-wordpress-blog-plugin

  9. does this plugin serves for bloggers?

  10. Wenceslao Villanueva Jr

    September 29, 2009 at 12:00 pm

    I’m having an issue as well with this plug in where nothing seems to show up in my WordPress post. I put up a thread about it here: http://forum.unity3d.com/viewtopic.php?t=33087

  11. @Paul: you should be able to set the logoimage inside the tags and have that point to a custom logo used when loading, or progressbarimage or progressframeimage for loader bar customizations. If that’s not happening then let me know.

    I’m overdue with some follow-up with those of you having problems with the plugin, I just got back from a 2-week road-trip and will be getting to you this weekend! Hang in there. :)

  12. Glad I found this – was about to start writing my own.
    Seems to work great!

    Cheers,

    – Tadej

  13. Tom! You’ve just made my life so much easier and opened up a whole new (simpler) way of distributing and showcasing content. simply brilliant!!!

    I have a couple of questions.

    1)I can’t seem to get change the background to the unity progress bar screen. Is it possible or have I misinterpreted the documentation?
    2)and is it possible to unload all other running unity apps on the wordpress page when you click on a new unity app to load? My browser crashed when multiple links happened to run at the same time on the same wordpress page.

    Cheers

    – Paul

  14. @Kolgrima and Mike: please drop me an email and I’ll try to work out these kinks with you two. I don’t sense that it’s a WP version issue, but without testing that is little more than fluff. I’ll happily knock something out with some debug/test code in it as I know the plugin well enough. Drop me a line at tom-at-unity3d.com!

  15. Have the same issue as Kolgrima. The address is http://watchmike.ca/386/.
    That being said, great job on the embedding on this website – its really nice.

  16. This plug-in sounds great, unfortunately I cannot get it to work at all with WP 2.7.1 (though version may have nothing to do with it) the url doesn’t seem to be getting passed to WP_Content.php so I just get empty Iframes… Not sure what else I could tell you about what may be causing this issue… I may have time to dig around more later in the week.

    Cheers

  17. @Robert: about moving the link, I think that for now I disagree and will leave it as is as >here< is telling you where to click. If you want to use it and change the location then it’s a trivial change in the content.php file. As to using cursor lock, that’s likely a good idea but in this case I wanted to grab a project “off-the-shelf” and use it as-is so I made zero changes (sort of a demo that you don’t need the source per se to use this plugin effectively). Thanks for the comments and ideas!

  18. Robert Cupisz

    May 18, 2009 at 3:04 pm

    Cool, Tom. I really hope stuff like that will help the unity player spread.

    Just some nitpicking on the usability side of things:

    After unity player has been activated, you show the ‘Click _here_ to unload the Unity Web Player content’ line. I’d suggest moving the link from ‘here’ to ‘unload’, really ;)

    Also, have you guys considered using cursor lock for the island demo? Most of the people I was showing unity to in the early days were finding it quite annoying, especially if they had stuff around the player that activates just with mouse over (like spaces or expose for some mac users). A ‘click to look around’ comment would be needed then, but it’s a small price to pay imho. A desirable side effect might that more unity users would consider using cursor lock even for their initial demos.

    Oh, and: rock on :)

  19. @Matthias: email received, I’ll look into things this weekend.

    @Nikko and gnoblin: I’m glad you like it! :)

  20. Thanks, Tom! =D

  21. That’s insane : I love it!

  22. @Matthias: a “broken image”? Can you send me (via email, tom-at-unity3d.com) a screenshot?

    @Ashkan: by career I’m not a programmer, but I’m quite experienced with scripting in many ways (JavaScript, a pinch of C#, ActionScript, PHP, etc.) as I’ve been in the software industry and tools business for 10+ years now. Most of that time has been spent in dev relations type roles so I have to be up to speed on things. My largest “project”, other than Unity, was working on Director & Shockwave for 8 years.

  23. Ashkan Saeedi

    May 13, 2009 at 2:43 pm

    hi
    congratulation!! great job tom but i know you are sad now because you could publish it last fall!!! :D :D :D

    Are you a programmer tom? if yes what languages? and did you work on any big project?

  24. Despite that fact that I have the Unity Web Player installed (e.x. all games from Blurst work) I only see a “broken image” image and the text “This content will require the Unity Web Player”. I’m using Firefox 3.0.10 with Unity 2.1.0f5 on WindowXP.

  25. Please keep me posted as to how it works for you folks!

  26. You have no idea how useful this is and how much time it will save many of us.
    On my worldlearningtree blog I had to take many extra steps to load other pages so I was not automatically loading Unity player. Thanks again!

  27. Great stuff, I have been looking for a plugin like this. Thank you.