Unity Web-Player HTML Problem

Just found out that people who didn’t have the unity web-player installed already, saw this on the page of our new futuristic racing game:
Not nice… So I uninstalled the unity web-player plugin by deleting it from /Library/Internet Plug-Ins/ (browser-restart required) and went bug-hunting…
Turns out the default unity html code opens an iFrame and never closes it again. So if you change line 141 (at least that’s the line number for the html that comes out of unity 2.5) and let it just close the iFrame again like this, you should be fine:
document.write('<iframe name="InstallerFrame" height="0" width="0" frameborder="0"></iframe>\n');
et voilá:
Bookmark the permalink. Follow any comments here with the RSS feed for this post. Trackbacks are closed, but you can post a comment.


    Robert Nall on October 5, 2009 at 05:17 | Permalink

    Thanks for that. Could easily see myself running into that problem later and not knowing about it . . .

    Nice layout, too, by the way!

    Scott Petrovic on October 9, 2009 at 14:46 | Permalink

    nice post. I didn't even think of this becoming an issue until you explained it. thanks

    hk網頁設計 on December 30, 2009 at 10:38 | Permalink

    Thank you for your article!

Post a Comment

Your email is never published nor shared. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>