Example #1
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
            YAMLMappingNode node = base.ExportYAMLRoot(container);
            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_GIWorkflowMode", GetExportGIWorkflowMode(container.Version, container.Flags));
            node.Add("m_GISettings", GetExportGISettings(container.Version).ExportYAML(container));
            node.Add("m_LightmapEditorSettings", GetExportLightmapEditorSettings(container.Version, container.Flags).ExportYAML(container));
#warning is that possible to somehow create LightingDataAsset with Release data?
            node.Add("m_LightingDataAsset", LightingDataAsset.ExportYAML(container));
            node.Add("m_UseShadowmask", GetExportUseShadowmask(container.Version));
            return(node);
        }
Example #2
0
        protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter)
        {
#warning TODO: values acording to read version (current 2017.3.0f3)
#warning TODO: convert data
            YAMLMappingNode node = base.ExportYAMLRoot(exporter);
            node.AddSerializedVersion(GetSerializedVersion(exporter.Version));
            node.Add("m_GIWorkflowMode", GIWorkflowMode);
            node.Add("m_GISettings", GISettings.ExportYAML(exporter));
            node.Add("m_LightmapEditorSettings", LightmapEditorSettings.ExportYAML(exporter));
            node.Add("m_LightingDataAsset", LightingDataAsset.ExportYAML(exporter));
            node.Add("m_UseShadowmask", 0);
            return(node);
        }