LoginSignup
2
1

More than 3 years have passed since last update.

UnityWebViewがうまく動かない問題を解決した

Posted at

最新のUnity WebViewにて、何も考えずに入れると、MacのUnityEditorで開いたらUnityが落ちたり、iOSで開けなかったりしたので解決策共有

Mac

Macは、PlayerSettingsにて Metal Editor Support のチェックを外せばOK.
古いUnityだった場合は、 Auto graphics API のチェックを外すらしい
参考:https://github.com/gree/unity-webview#mac-editor

iOS

iOSは、webViewObject.Init時に enableWKWebView: trueを指定すればOK.
webViewObject.Init(enableWKWebView: true)
参考:https://github.com/gree/unity-webview#ios

その他

あと、Unityバージョンによって必要な作業がある場合があるっぽいので参考URLの下の方も目を通しておくと良さそう。
Androidは開くけどスクロールがガクガクするの、設定で直ったりもするらしいので。

※ 教訓:新規入れ直しのときは、Readmeを読もう!

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1