public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("probeOcclusionLightIndex", ProbeOcclusionLightIndex); node.Add("occlusionMaskChannel", OcclusionMaskChannel); if (GetSerializedVersion(container.Version) >= 2) { node.Add("lightmapBakeMode", LightmapBakeMode.ExportYAML(container)); node.Add("isBaked", IsBaked); } else { node.Add("lightmappingMask", LightmappingMask); } return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion)); node.Add(ProbeOcclusionLightIndexName, ProbeOcclusionLightIndex); node.Add(OcclusionMaskChannelName, OcclusionMaskChannel); if (GetSerializedVersion(container.Version) >= 2) { node.Add(LightmapBakeModeName, LightmapBakeMode.ExportYAML(container)); node.Add(IsBakedName, IsBaked); } else { node.Add(LightmappingMaskName, LightmappingMask); } return(node); }