How to load an html webpage inside unity3d

别等时光非礼了梦想. 提交于 2020-01-02 07:50:56

问题


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.



来源:https://stackoverflow.com/questions/46827297/how-to-load-an-html-webpage-inside-unity3d

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!