Beispiel #1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion));
            node.Add(LightmapName, Lightmap.ExportYAML(container));
            if (HasIndirectLightmap(container.ExportVersion))
            {
                node.Add(IndirectLightmapName, IndirectLightmap.ExportYAML(container));
            }
            if (HasLightInd(container.ExportVersion))
            {
                node.Add(LightIndName, LightInd.ExportYAML(container));
                node.Add(DirIndName, DirInd.ExportYAML(container));
            }
            if (HasDirLightmap(container.ExportVersion))
            {
                node.Add(DirLightmapName, DirLightmap.ExportYAML(container));
            }
            if (HasShadowMask(container.ExportVersion))
            {
                node.Add(ShadowMaskName, ShadowMask.ExportYAML(container));
            }
            return(node);
        }
Beispiel #2
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.Version));
            node.Add("m_Lightmap", Lightmap.ExportYAML(container));
            node.Add("m_DirLightmap", DirLightmap.ExportYAML(container));
            node.Add("m_ShadowMask", ShadowMask.ExportYAML(container));
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion));
            node.Add(LightmapName, Lightmap.ExportYAML(container));
            node.Add(DirLightmapName, DirLightmap.ExportYAML(container));
            node.Add(ShadowMaskName, ShadowMask.ExportYAML(container));
            return(node);
        }
Beispiel #4
0
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(SplatDatabaseName, SplatDatabase.ExportYAML(container));
            node.Add(DetailDatabaseName, DetailDatabase.ExportYAML(container));
            node.Add(HeightmapName, Heightmap.ExportYAML(container));
            if (HasLightmap(container.ExportVersion))
            {
                node.Add(LightmapName, Lightmap.ExportYAML(container));
            }
            return(node);
        }