- 373 名前:名前は開発中のものです。 [2018/09/03(月) 07:20:52.17 ID:h+zzshNm.net]
- >>364
https://docs.unity3d.com/ScriptReference/Application-streamingAssetsPath.html の 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.」のところに波線が出てエラーになります。 これじゃないのでしょうか
|

|