开发者

SWFObject like setup for Unity

开发者 https://www.devze.com 2023-03-29 01:01 出处:网络
Is there a SWFObject type setup for embedding Unity content and having a fallback HTML content (with a link to install th开发者_Go百科e plugin)?

Is there a SWFObject type setup for embedding Unity content and having a fallback HTML content (with a link to install th开发者_Go百科e plugin)?

The JS included with Unity only allows for a button they've created.


Here's the official guide

Basically, for non-IE browsers, you check that the plugin's installed using javascript, and for IE, you use VisualBasic scripting. Their code isn't terribly pretty (all those document.write calls - ugh!) but it's robust.

You can always take their code, clean it up and wrap it in a nicer package. I know I did (but for a client, so I can't give you the code - sorry)

0

精彩评论

暂无评论...
验证码 换一张
取 消