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);
        }
Example #2
0
        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);
        }