示例#1
0
    public static void OutputXml()
    {
        if (ABSH == null)
        {
            ABSH = AssetBundleSettingHelperEditor.GetABSH(out ABPHInfo);
            if (ABPHInfo == null)
            {
            }
        }
        Selection.activeObject = ABSH;

        var abpi = ABSH.GetDataAnalysisXmlABPI();

        if (!Directory.Exists(abpi.Dir_Relative))
        {
            Directory.CreateDirectory(abpi.Dir_Relative);
        }
        XmlDocument doc     = new XmlDocument();
        XmlElement  AllRoot = doc.CreateElement(AssetBundleSettingHelper.xmlNode_PhaseRoot);

        doc.AppendChild(AllRoot);
        foreach (var p in PhaseABPreloadInfos_EditorAnalysis)
        {
            p.Value.OutputXMlNode(doc, AllRoot);
        }

        doc.Save(abpi.FullName_RelativePath);
    }