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\$ – Eric Miller May 5 '15 at 1:22
  • 1
    \$\begingroup\$ Why do you want to do such a thing? \$\endgroup\$ – o0'. Aug 3 '15 at 21:05
  • \$\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\$ – AR Artistry Sep 29 '20 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\$ – Shuvro Sarkar Sep 29 '20 at 23:44
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\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.