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

            node.Add("uvMesh", UVMesh.ExportYAML(container));
            node.Add("terrainDynamicUVST", TerrainDynamicUVST.ExportYAML(container));
            node.Add("terrainChunkDynamicUVST", TerrainChunkDynamicUVST.ExportYAML(container));
            node.Add("lightmapIndex", LightmapIndex);
            node.Add("lightmapIndexDynamic", LightmapIndexDynamic);
            node.Add("lightmapST", LightmapST.ExportYAML(container));
            node.Add("lightmapSTDynamic", LightmapSTDynamic.ExportYAML(container));
            return(node);
        }
예제 #2
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(UvMeshName, UVMesh.ExportYAML(container));
            node.Add(TerrainDynamicUVSTName, TerrainDynamicUVST.ExportYAML(container));
            node.Add(TerrainChunkDynamicUVSTName, TerrainChunkDynamicUVST.ExportYAML(container));
            node.Add(LightmapIndexName, LightmapIndex);
            node.Add(LightmapIndexDynamicName, LightmapIndexDynamic);
            node.Add(LightmapSTName, LightmapST.ExportYAML(container));
            node.Add(LightmapSTDynamicName, LightmapSTDynamic.ExportYAML(container));
            if (IsReadExplicitProbeSetHash(container.ExportVersion))
            {
                node.Add(ExplicitProbeSetHashName, ExplicitProbeSetHash.ExportYAML(container));
            }
            return(node);
        }