// unity 낮은버전

WWW read = new WWW(Application.streamingAssetsPath + "파일이름.json");

 

// unity 높은버전

    void Start()
    {

        StartCoroutine(aa());
    }

    IEnumerator aa()
    {
        UnityWebRequest request = UnityWebRequest.Get(Application.streamingAssetsPath + "파일이름.json");
        yield return request.SendWebRequest();
        Debug.Log(request.downloadHandler.text);
    }

+ Recent posts