📅  最后修改于: 2022-03-11 14:49:08.230000             🧑  作者: Mango
public class MyArray {
public T[] array;
}
var class = new MyArray();
var outputString = JsonUtility.ToJson(class);
File.WriteAllText("C:\\MyFile.json", outputString);
//In reverse, you can deserialize anything doing this:
var inputString = File.ReadAllText("C:\\MyFile.json");
var class = JsonUtility.FromJson(inputString);