x


How to load html content

Is it possible to load a web page from a Unity3d standalone build?

more ▼

asked Mar 03 '10 at 09:19 PM

Jedda gravatar image

Jedda
41 1 1 4

(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first

Unity does not have a built-in HTML parser/renderer. That said, you have a couple options.

  • If you're using Unity Pro (and building a standalone, as your question suggests), you can use the HtmlTexturePlugin to display a web page on some surface. This solution has some limitations (described in the wiki page).
  • You can always pull raw HTML content using the WWW class, and render it as best you can. AFAIK, there are no publicly available HTML renderer scripts.

So the short answer is, "Yes it's possible to load a web page; but what you do with it is another, more difficult matter."

more ▼

answered Mar 03 '10 at 10:04 PM

burnumd gravatar image

burnumd
3.4k 22 35 71

The HtmlTexturePlugin is Mac only. Is there anything similar to this for Windows?

Dec 14 '10 at 12:15 AM William R. Cousert

Not that I know of. I haven't looked at the HTML Texture Plugin in a while, but if I remember correctly, it used Webkit which is embeddable in OS X. So you'd have to wrap some HTML rendering engine for it to work in Windows.

Dec 14 '10 at 06:16 PM burnumd

See also this thread, which mentions use of WebKit and other possible techniques. http://forum.unity3d.com/threads/30677-Show-a-website-in-Unity

Dec 29 '10 at 10:41 PM yoyo

Adding a bit more to this: http://labs.awesomium.com/unity3d-integration-tutorial-part-1/

I was looking for similar feature and most of the lines I ran down called for Unity Pro which I don't yet have. The link I provided there sugests it works Basic or Pro

Mar 09 at 04:38 PM lodendsg

Sadly, awesomium doesn't seem to work anymore since they upgraded to 1.7...

May 06 at 07:04 AM oakshiro
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x455
x73
x19

asked: Mar 03 '10 at 09:19 PM

Seen: 10868 times

Last Updated: May 06 at 09:24 AM