facebook twitter hatena line email

「Unity/Csharp/WebView」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(ページの作成:「==無料でWebViewを使う== #git clone https://github.com/gree/unity-webview #unity/Assets/ImportPackage #unity-webview/dist/unity-webview.unitypackageを選択しimpor...」)
 
(無料でWebViewを使う)
 
(同じ利用者による、間の4版が非表示)
行3: 行3:
 
#unity/Assets/ImportPackage
 
#unity/Assets/ImportPackage
 
#unity-webview/dist/unity-webview.unitypackageを選択しimportする
 
#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が必要?

2019年7月25日 (木) 15:12時点における最新版

無料で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が必要?