예제 #1
0
        public YAMLDocument ExportYAMLDocument(IAssetsExporter exporter)
        {
            YAMLDocument    document = new YAMLDocument();
            YAMLMappingNode node     = ExportYAMLRoot(exporter);
            YAMLMappingNode root     = document.CreateMappingRoot();

            root.Tag    = ClassID.ToInt().ToString();
            root.Anchor = exporter.GetExportID(this);
            root.Add(ClassIDName, node);

            return(document);
        }
예제 #2
0
 protected override string GetPathIDString(IAssetsExporter exporter)
 {
     return(exporter.GetExportID(m_prefab));
 }
 protected override void ExportYAMLInner(IAssetsExporter exporter, YAMLMappingNode node)
 {
     node.Add("mainObjectFileID", exporter.GetExportID(m_mainObject));
 }