facebook twitter hatena line email

Unity/Csharp/WebView

提供: 初心者エンジニアの簡易メモ
2019年7月25日 (木) 15:12時点におけるAdmin (トーク | 投稿記録)による版 (無料でWebViewを使う)

(差分) ←前の版 | 最新版 (差分) | 次の版→ (差分)
移動: 案内検索

無料でWebViewを使う

  1. git clone https://github.com/gree/unity-webview
  2. unity/Assets/ImportPackage
  3. unity-webview/dist/unity-webview.unitypackageを選択しimportする
public class AdsScript : MonoBehaviour {
	string url = "ttp://example.com";
	WebViewObject webViewObject;
	void Start() {
		webViewObject =
			(new GameObject("WebViewObject")).AddComponent<WebViewObject>();
		webViewObject.LoadURL(url);
		webViewObject.SetMargins(0,0,0,0);
		webViewObject.SetVisibility(true);
	}
}

参考:https://loumo.jp/wp/archive/20131115085810/

Android,WebGLでは表示されなかった。Proが必要?