[Unity] json mobile save and load in unity
2022. 2. 22.
유니티 모바일 환경에서 json 파일을 저장 불러오기 하면 Null 에러가 발생하는 문제가 생겼다. 분명히 파일에 json파일이 존재하고 에디터 환경에서 실행하면 잘 동작하는데 뭐가 문제인가... [ContextMenu("UI Data To Json")] string jsonData = JsonUtility.ToJson(UIDatas, true); if (!Directory.Exists(Application.dataPath + m_path)) Directory.CreateDirectory((Application.dataPath + m_path)); string totalPath = Path.Combine(Application.dataPath + m_path, m_name); File.WriteAllTex..