private void CreatToolJsonExample() { Debug.Log("SaveJson"); //List<T> -> Json ( 例 : List<Enemy> ) List <ToolInfo> tasks = ReadExcel.ReadToolExcel(m_excelPath); //string str = JsonUtility.ToJson(tasks); // 输出 : { } string str = JsonUtility.ToJson(new Serialization <ToolInfo>(tasks)); File.WriteAllText(Application.streamingAssetsPath + m_jsonListPath, str); Debug.Log(str); }