private void ConvertJsonToString(System.Text.StringBuilder sb) { sb.Append("{\n\t\"assets\":[\n"); for (int i = 0; i < this._assets.Count; i++) { var assetUrl = this._assets[i]; MyJson_Object asset = new MyJson_Object(); sb.Append("\t\t"); // sb.Append(asset.ToString()); sb.Append('"' + assetUrl + '"');//现在版本Asset只导出url if (i != this._assets.Count - 1) { sb.Append(','); } sb.Append("\n"); } sb.Append("\t],\n\t\"objects\":[\n"); for (int i = 0; i < this._objects.Count; i++) { MyJson_Object obj = this._objects[i]; sb.Append("\t\t"); sb.Append(obj.ToString()); if (i != this._objects.Count - 1) { sb.Append(','); } sb.Append("\n"); } sb.Append("\t],\n\t\"components\":[\n"); for (int i = 0; i < this._comps.Count; i++) { MyJson_Object comp = this._comps[i]; sb.Append("\t\t"); sb.Append(comp.ToString()); if (i != this._comps.Count - 1) { sb.Append(','); } sb.Append("\n"); } // sb.Append("\t],\n"); sb.Append("\n\t\"version\":" + VERSION + "\n}"); }