facebook twitter hatena line email

「Unity/おすすめアセット/UniWebView」の版間の差分

提供: 初心者エンジニアの簡易メモ
移動: 案内検索
(UniWebViewとは)
 
行4: 行4:
 
*UnityAssets:https://assetstore.unity.com/packages/tools/network/uniwebview-5-229334
 
*UnityAssets:https://assetstore.unity.com/packages/tools/network/uniwebview-5-229334
 
*公式ドキュメント:https://docs.uniwebview.com/
 
*公式ドキュメント:https://docs.uniwebview.com/
*Andorid,iOSでは動く。WebGLでは動かない。
+
*Android,iOSでは動く。WebGLでは動かない。
  
 
==インストール==
 
==インストール==

2024年1月3日 (水) 01:11時点における最新版

UniWebViewとは

インストール

以下をimport

Editor/UniWebView
Plugins/Android/UniWebView
Plugins/iOS/libUniWebView
Plugins/UniWebView.bundle
UniWebView

参考:https://docs.uniwebview.com/guide/installation.html#importing-package

Helloworld

[SerializeField] UniWebView webView;
void Start()
{
    webView.Frame = new Rect(0, 0, Screen.width, Screen.height);
    webView.Load("ttps://google.co.jp");
    webView.Show();
}

サイズ変更

マージン100としたとき

webView.Frame = new Rect(100, 100, Screen.width - 200, Screen.height - 200);

下半分で表示

webView.Frame = new Rect(0, Screen.height / 2, Screen.width, Screen.height / 2);