ToXML() public method

public ToXML ( ) : string
return string
コード例 #1
0
    /// <summary>
    /// Convert this camera path into an xml string for export
    /// </summary>
    /// <returns>A generated XML string</returns>
    public string ToXML()
    {
        StringBuilder sb = new StringBuilder();

        sb.AppendLine("<?xml version='1.0' encoding='ISO-8859-15'?>");
        sb.AppendLine("<!-- Unity3D Asset Track BuildR XML Exporter http://trackbuildr.jasperstocker.com -->");
        sb.AppendLine("<trackbuildr>");
        sb.AppendLine("<version>" + version + "</version>");
        sb.AppendLine("<name>" + name + "</name>");
        sb.AppendLine("<fileType>" + fileType + "</fileType>");
        sb.AppendLine("<exportFilename>" + exportFilename + "</exportFilename>");
        sb.AppendLine("<copyTexturesIntoExportFolder>" + copyTexturesIntoExportFolder + "</copyTexturesIntoExportFolder>");
        sb.AppendLine("<exportCollider>" + exportCollider + "</exportCollider>");
        sb.AppendLine("<createPrefabOnExport>" + createPrefabOnExport + "</createPrefabOnExport>");

        sb.Append(track.ToXML());

        sb.AppendLine("</trackbuildr>");

        return(sb.ToString());
    }