2
\$\begingroup\$

How can I open an HTML page inside UNITY, with the page functioning normally?

\$\endgroup\$
4
  • \$\begingroup\$ Use the WWW.Load () feature. More info here: answers.unity3d.com/questions/517414/… You'll need to know the file path on the users device. \$\endgroup\$ Commented May 5, 2015 at 1:22
  • 1
    \$\begingroup\$ Why do you want to do such a thing? \$\endgroup\$
    – o0'.
    Commented Aug 3, 2015 at 21:05
  • 1
    \$\begingroup\$ Unity doesn't have a built-in browser widget, but this web browser library is good for embedding web pages in your game. We use it on Windows and mobile. \$\endgroup\$ Commented Sep 29, 2020 at 21:38
  • \$\begingroup\$ Unity does not have any built-in solution afaik. However, this open-source plugin works great to load a WebView inside unity. Looks like it's updated regularly as well. github.com/gree/unity-webview \$\endgroup\$ Commented Sep 29, 2020 at 23:44

2 Answers 2

1
\$\begingroup\$

It depends what you mean by "the page functioning normally". Assuming you mean a browseable webpage within a game, then no.

You can make HTTP requests from Unity and thus download the data, but Unity isn't a web browser and won't display the HTML as a webpage. Similarly, Unity can open a web browser to a specific URL, but then that's not "inside Unity".

\$\endgroup\$
0
\$\begingroup\$

It's trivial to load information and files from a url online into unity by passing json, xml, material types (unity doesnt have a browser itself). Alteratively, you can pass the user to their browser to view the webpage.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .