【发布时间】:2023-04-08 13:18:01
【问题描述】:
如何从 StreamingAssets 读取 json for android app?
对于我阅读此代码的 iOS,
public void ReadJson(){
string path = "/Raw/elements.json";
#if UNITY_EDITOR
path = "/StreamingAssets/elements.json";
#endif
string json = File.ReadAllText(Application.dataPath + path);
itemsContent = JsonUtility.FromJson<Main> (json);
bundleForPing = itemsContent.bundleID;
}
但是如何为 android 阅读...请帮助
【问题讨论】:
-
不重复!
-
unity for Android App...