-->

How to load an html webpage inside unity3d

2020-07-18 07:23发布

问题:

I want to show a webpage inside unity3d without making it an image and load it via a WWW class.

I have seen that there are plugins, but I would like to load the web page without one.

回答1:

  1. You need a plugin because the best way to do what you want is "webview"

  2. If you really don't want to use a plugin, then use Applicaion.OpenUrl instead. This will open web pages, but not inside the unity window. It will open a browser application and show webpage.

  3. If you want to use a plugin, check this github https://github.com/gree/unity-webview



回答2:

I recently did a deep dive into this, and apparently it's not possible without some sort of plugin. I tried some open source libraries, but they could only show a 2D webview on top of the app. So, I ended up going with this 3D webview asset, since it works inside of the scene.