protected override YAMLMappingNode ExportYAMLRoot(IAssetsExporter exporter) { #warning TODO: check undefined vars #warning TODO: serialized version acording to read version (current 2017.3.0f3) YAMLMappingNode node = base.ExportYAMLRoot(exporter); node.Add("m_Enabled", Enabled); node.Add("m_CastShadows", CastShadows); node.Add("m_ReceiveShadows", ReceiveShadows); if (IsReadDynamicOccludee(exporter.Version)) { #warning TODO: node.Add("m_DynamicOccludee", 1); } else { node.Add("m_DynamicOccludee", 1); } node.Add("m_MotionVectors", MotionVectors); node.Add("m_LightProbeUsage", LightProbeUsage); node.Add("m_ReflectionProbeUsage", ReflectionProbeUsage); node.Add("m_Materials", Materials.ExportYAML(exporter)); if (IsReadSubsetIndices(exporter.Version)) { StaticBatchInfo staticBatchInfo = new StaticBatchInfo(SubsetIndices); node.Add("m_StaticBatchInfo", staticBatchInfo.ExportYAML(exporter)); } else { node.Add("m_StaticBatchInfo", StaticBatchInfo.ExportYAML(exporter)); } node.Add("m_StaticBatchRoot", StaticBatchRoot.ExportYAML(exporter)); node.Add("m_ProbeAnchor", ProbeAnchor.ExportYAML(exporter)); node.Add("m_LightProbeVolumeOverride", LightProbeVolumeOverride.ExportYAML(exporter)); #warning what are those vars? node.Add("m_ScaleInLightmap", 1); node.Add("m_PreserveUVs", 0); node.Add("m_IgnoreNormalsForChartDetection", 0); node.Add("m_ImportantGI", 0); #warning TODO? Should I read this parameter or just write default value? node.Add("m_StitchLightmapSeams", 0); node.Add("m_SelectedEditorRenderState", 3); node.Add("m_MinimumChartSize", 4); node.Add("m_AutoUVMaxDistance", 0.5f); node.Add("m_AutoUVMaxAngle", 89); #warning TODO? node.Add("m_LightmapParameters", default(PPtr <Object>).ExportYAML(exporter)); node.Add("m_SortingLayerID", SortingLayerID); node.Add("m_SortingLayer", SortingLayer); node.Add("m_SortingOrder", SortingOrder); return(node); }
protected override YAMLMappingNode ExportYAMLRoot() { #warning TODO: check undefined vars #warning TODO: write according to version YAMLMappingNode node = base.ExportYAMLRoot(); node.Add("m_Enabled", Enabled); node.Add("m_CastShadows", CastShadows); node.Add("m_ReceiveShadows", ReceiveShadows); if (IsReadDynamicOccludee) { #warning TODO: node.Add("m_DynamicOccludee", 1); } else { node.Add("m_DynamicOccludee", 1); } node.Add("m_MotionVectors", MotionVectors); node.Add("m_LightProbeUsage", LightProbeUsage); node.Add("m_ReflectionProbeUsage", ReflectionProbeUsage); node.Add("m_Materials", Materials.ExportYAML()); node.Add("m_StaticBatchInfo", StaticBatchInfo.ExportYAML()); node.Add("m_StaticBatchRoot", StaticBatchRoot.ExportYAML()); node.Add("m_ProbeAnchor", ProbeAnchor.ExportYAML()); node.Add("m_LightProbeVolumeOverride", LightProbeVolumeOverride.ExportYAML()); #warning what are those vars? node.Add("m_ScaleInLightmap", 1); node.Add("m_PreserveUVs", 0); node.Add("m_IgnoreNormalsForChartDetection", 0); node.Add("m_ImportantGI", 0); #warning TODO? is read this parameter or just write default value? node.Add("m_StitchLightmapSeams", 0); node.Add("m_SelectedEditorRenderState", 3); node.Add("m_MinimumChartSize", 4); node.Add("m_AutoUVMaxDistance", 0.5f); node.Add("m_AutoUVMaxAngle", 89); node.Add("m_LightmapParameters", PPtr <Object> .Empty.ExportYAML()); node.Add("m_SortingLayerID", SortingLayerID); node.Add("m_SortingLayer", SortingLayer); node.Add("m_SortingOrder", SortingOrder); return(node); }