public void Apply() { var json = new JsonObject(); json["buildParameter"] = m_buildParameter.ToJson(); var list = new JsonArray(); for (int i = 0; i < m_bundleGroup.Count; i++) { list.Add(m_bundleGroup[i].ToJson()); } json["bundleGroup"] = list; File.WriteAllText(configPath, lhJson.PrettyPrint(json.ToString())); EditorUtility.DisplayDialog("Information", "Save success", "Ok"); }