Unity が提供しているiOS用レビュースクリプト「UnityEngine.iOS.Device.RequestStoreReview」ですが
設置するとなぜかエラーになります。
環境)
PC: mac
Unity2017
言語:C#
using System.Collections; using System.Collections.Generic; using UnityEngine; #if UNITY_IOS using System; using UnityEngine.iOS; #endif public class WebViewScript : MonoBehaviour { private string formUrl = "https://goo.co.jp"; // Use this for initialization void Start () { } // Update is called once per frame void Update () { } public void PushFormView(){ Application.OpenURL(formUrl); } public void PushWebView(){ #if UNITY_IOS if(Device.RequestStoreReview()){ } #elif UNITY_ANDROID string psUrl = "https://play.google.com/store/apps/details?id=testApp"; Application.OpenURL(psUrl); #endif } }
エラー内容)
Assets/Scripts/WebViewScript.cs(27,13): error CS0117: `UnityEngine.iOS.Device' does not contain a definition for `RequestStoreReview'
どうしてでしょうか?Device.RequestStoreReview自体は公式サイトを見ても使えると思うのですが・・・。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。