0
\$\begingroup\$

Is it possible to open a HTML page inside UNITY, with the page functioning normally?

\$\endgroup\$
  • 1
    \$\begingroup\$ Why do you want to do such a thing? \$\endgroup\$ – o0'. Aug 3 '15 at 21:05
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\$

Use the WWW.Load () feature.

More info here: http://answers.unity3d.com/questions/517414/how-to-use-www-to-load-local-files.html

You'll need to know the file path on the users device.

\$\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.