0 votes
by (240 points)
recategorized by

public IEnumerator Read()
UnityWebRequest request = UnityWebRequest.Get(configUrl);
yield return request.SendWebRequest();
string str = request.downloadHandler.text;
fileContent = str;


2 Answers

0 votes
by (360 points)


by (240 points)

获取网络上的资源数据,IO没法弄,后来咨询官方人员,说的是有一个权限没开,修改 AndroidManifest.xml 文件 添加 android:usesCleartextTraffic=“true”>,供大家共同学习!

0 votes
by (2.7k points)
edited by

unity 发布的 apk, 在 android 9 之后 http 请求会被拦截
在AndroidManifest.xml的application标签下添加: android:usesCleartextTraffic=“true”

1.8k Questions

2.2k Answers


1.2k Developers

If you have question about this website, please click 'Send Feedback' button at the bottom left side of the homepage.