protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion)); node.Add(SceneName, Scene.ExportYAML(container)); node.Add(LightmapsName, Lightmaps.ExportYAML(container)); if (IsReadAOTextures(container.ExportVersion)) { node.Add(AOTexturesName, GetAOTextures(container.Version).ExportYAML(container)); } if (IsReadLightmapsCacheFiles(container.Version)) { node.Add(LightmapsCacheFilesName, GetLightmapsCacheFiles(container.Version).ExportYAML()); } node.Add(LightProbesName, LightProbes.ExportYAML(container)); node.Add(LightmapsModeName, LightmapsMode); node.Add(BakedAmbientProbeInLinearName, BakedAmbientProbeInLinear.ExportYAML(container)); node.Add(LightmappedRendererDataName, LightmappedRendererData.ExportYAML(container)); node.Add(LightmappedRendererDataIDsName, LightmappedRendererDataIDs.ExportYAML(container)); node.Add(EnlightenSceneMappingName, EnlightenSceneMapping.ExportYAML(container)); node.Add(EnlightenSceneMappingRendererIDsName, EnlightenSceneMappingRendererIDs.ExportYAML(container)); node.Add(LightsName, Lights.ExportYAML(container)); node.Add(LightBakingOutputsName, LightBakingOutputs.ExportYAML(container)); if (IsReadBakedReflectionProbeCubemapCacheFiles(container.ExportVersion)) { node.Add(BakedReflectionProbeCubemapCacheFilesName, GetBakedReflectionProbeCubemapCacheFiles(container.Version).ExportYAML()); } node.Add(BakedReflectionProbeCubemapsName, BakedReflectionProbeCubemaps.ExportYAML(container)); node.Add(BakedReflectionProbesName, BakedReflectionProbes.ExportYAML(container)); node.Add(EnlightenDataName, EnlightenData.ExportYAML()); node.Add(EnlightenDataVersionName, EnlightenDataVersion); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.Add("m_Scene", Scene.ExportYAML(container)); node.Add("m_Lightmaps", Lightmaps.ExportYAML(container)); node.Add("m_LightProbes", LightProbes.ExportYAML(container)); node.Add("m_LightmapsMode", LightmapsMode); node.Add("m_BakedAmbientProbeInLinear", BakedAmbientProbeInLinear.ExportYAML(container)); node.Add("m_LightmappedRendererData", LightmappedRendererData.ExportYAML(container)); node.Add("m_LightmappedRendererDataIDs", LightmappedRendererDataIDs.ExportYAML(container)); node.Add("m_EnlightenSceneMapping", EnlightenSceneMapping.ExportYAML(container)); node.Add("m_EnlightenSceneMappingRendererIDs", EnlightenSceneMappingRendererIDs.ExportYAML(container)); node.Add("m_Lights", Lights.ExportYAML(container)); node.Add("m_LightBakingOutputs", LightBakingOutputs.ExportYAML(container)); node.Add("m_BakedReflectionProbeCubemaps", BakedReflectionProbeCubemaps.ExportYAML(container)); node.Add("m_BakedReflectionProbes", BakedReflectionProbes.ExportYAML(container)); node.Add("m_EnlightenData", EnlightenData.ExportYAML()); node.Add("m_EnlightenDataVersion", EnlightenDataVersion); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); if (HasLightProbesLegacy(container.ExportVersion)) { node.Add(LightProbesLegacyName, LightProbesLegacy.ExportYAML(container)); } if (HasGIWorkflowMode(container.ExportVersion, container.ExportFlags)) { node.Add(GIWorkflowModeName, (int)GetExportGIWorkflowMode(container.Version, container.Flags)); } if (HasLightProbes(container.ExportVersion, container.ExportFlags)) { node.Add(LightProbesName, LightProbes.ExportYAML(container)); } if (HasLightmaps(container.ExportVersion, container.ExportFlags)) { node.Add(LightmapsName, Lightmaps.ExportYAML(container)); } if (HasLightmapsModeLegacy(container.ExportVersion)) { node.Add(LightmapsModeLegacyName, (int)LightmapsModeLegacy); } if (HasLightmapsMode(container.ExportVersion, container.ExportFlags)) { node.Add(LightmapsModeName, (int)LightmapsMode); } if (HasBakedColorSpace(container.ExportVersion)) { node.Add(BakedColorSpaceName, (int)BakedColorSpace); } if (HasUseDualLightmapsInForward(container.ExportVersion)) { node.Add(UseDualLightmapsInForwardName, UseDualLightmapsInForward); } if (HasGISettings(container.ExportVersion)) { node.Add(GISettingsName, GetExportGISettings(container.Version).ExportYAML(container)); } #if UNIVERSAL if (HasLightmapEditorSettings(container.ExportVersion, container.ExportFlags)) { node.Add(LightmapEditorSettingsName, GetExportLightmapEditorSettings(container).ExportYAML(container)); } if (HasLightingDataAsset(container.ExportVersion, container.ExportFlags)) { node.Add(LightingDataAssetName, GetLightingDataAsset(container.Version, container.Flags).ExportYAML(container)); } #endif if (HasRuntimeCPUUsage(container.ExportVersion)) { node.Add(RuntimeCPUUsageName, RuntimeCPUUsage); } if (HasUseShadowmask(container.ExportVersion)) { if (IsBoolShadowmask(container.ExportVersion)) { node.Add(UseShadowmaskName, GetExportUseShadowmask(container.Version)); } else { node.Add(ShadowMaskModeName, ShadowMaskMode); } } return(node); }