18/09/03 07:20:52.17 h+zzshNm.net
>>364
URLリンク(docs.unity3d.com)
の
public string filePath = System.IO.Path.Combine(Application.streamingAssetsPath, "MyFile");
public string result = "";
IEnumerator Example() {
if (filePath.Contains("://")) {
Networking.UnityWebRequest www = Networking.UnityWebRequest.Get(filePath);
yield return www.SendWebRequest();
result = www.downloadHandler.text;
} else
result = System.IO.File.ReadAllText(filePath);
}
を
public class ExampleClass : MonoBehaviour {
の後ろに入れたりしてみましたが、
「Networking.」のところに波線が出てエラーになります。
これじゃないのでしょうか