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