LoginSignup
1
1

More than 5 years have passed since last update.

[Unity]Webから画像をダウンロードして表示しようとしたときにiOSでUnsupported URLのエラーが出た時の対処[覚書]

Last updated at Posted at 2016-10-13

対処方法

1.Edit>Project Settings>Playerを開いてiOSタブを選択。
  Other Settingsの"Allow Download over HTTP"にチェックを入れる。
  
2.URLエスケープされているか確認する。

using System.Web;

...
...


    string Url = @"https://maps.googleapis.com/maps/api/staticmap?size=500x500&maptype=terrain&center=40.714728,-73.998672&zoom=17&sensor=false";
    Url = Uri.EscapeUriString(Url); // URLエスケープする。

 System.Webを使うために、.NETをサブセットではなくフルセットにする。
  Edit>Project Settings>Playerを開いてiOSタブを選択。
  Other Settingsの"Api Compatibility Level"を".NET 2.0 Subset"ではなく".NET 2.0"に変更する。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1