Unity/Csharp/WebView
提供: 初心者エンジニアの簡易メモ
無料でWebViewを使う
- git clone https://github.com/gree/unity-webview
- unity/Assets/ImportPackage
- 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); } }