且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在unity3d内加载HTML网页

更新时间:2023-10-27 16:06:16

  1. 您需要一个插件,因为执行所需操作的***方法是"webview"

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

如果您真的不想使用插件,请改用Applicaion.OpenUrl.这将打开网页,但不会在统一窗口内打开.它将打开浏览器应用程序并显示网页.

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.

如果要使用插件,请检查此github https://github.com/gree/unity-webview

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