public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); node.Add(NameName, Name); node.Add(PixelLightCountName, PixelLightCount); node.Add(ShadowsName, (int)Shadows); node.Add(ShadowResolutionName, (int)ShadowResolution); node.Add(ShadowProjectionName, (int)ShadowProjection); node.Add(ShadowCascadesName, (int)ShadowCascades); node.Add(ShadowDistanceName, ShadowDistance); node.Add(ShadowNearPlaneOffsetName, ShadowNearPlaneOffset); node.Add(ShadowCascade2SplitName, ShadowCascade2Split); node.Add(ShadowCascade4SplitName, ShadowCascade4Split.ExportYAML(container)); node.Add(ShadowmaskModeName, (int)ShadowmaskMode); node.Add(GetSkinWeightsName(container.ExportVersion), (int)SkinWeights); node.Add(TextureQualityName, (int)TextureQuality); node.Add(AnisotropicTexturesName, (int)AnisotropicTextures); node.Add(AntiAliasingName, (int)AntiAliasing); node.Add(SoftParticlesName, SoftParticles); node.Add(SoftVegetationName, SoftVegetation); node.Add(RealtimeReflectionProbesName, RealtimeReflectionProbes); node.Add(BillboardsFaceCameraPositionName, BillboardsFaceCameraPosition); node.Add(VSyncCountName, (int)VSyncCount); node.Add(LodBiasName, LodBias); node.Add(MaximumLODLevelName, MaximumLODLevel); if (HasStreamingMipmapsActive(container.ExportVersion)) { node.Add(StreamingMipmapsActiveName, StreamingMipmapsActive); node.Add(StreamingMipmapsAddAllCamerasName, GetStreamingMipmapsAddAllCameras(container.Version)); node.Add(StreamingMipmapsMemoryBudgetName, GetStreamingMipmapsMemoryBudget(container.Version)); node.Add(StreamingMipmapsRenderersPerFrameName, GetStreamingMipmapsRenderersPerFrame(container.Version)); node.Add(StreamingMipmapsMaxLevelReductionName, GetStreamingMipmapsMaxLevelReduction(container.Version)); node.Add(StreamingMipmapsMaxFileIORequestsName, GetStreamingMipmapsMaxFileIORequests(container.Version)); } node.Add(ParticleRaycastBudgetName, ParticleRaycastBudget); node.Add(AsyncUploadTimeSliceName, AsyncUploadTimeSlice); node.Add(AsyncUploadBufferSizeName, AsyncUploadBufferSize); if (HasAsyncUploadPersistentBuffer(container.ExportVersion)) { node.Add(AsyncUploadPersistentBufferName, AsyncUploadPersistentBuffer); } node.Add(ResolutionScalingFixedDPIFactorName, ResolutionScalingFixedDPIFactor); if (HasCustomRenderPipeline(container.ExportVersion)) { node.Add(CustomRenderPipelineName, CustomRenderPipeline.ExportYAML(container)); } node.Add(ExcludedTargetPlatformsName, GetExcludedTargetPlatforms(container.Version, container.Flags).ExportYAML()); return(node); }
public YAMLNode ExportYAML(IExportContainer container) { YAMLMappingNode node = new YAMLMappingNode(); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("name", Name); node.Add("pixelLightCount", PixelLightCount); node.Add("shadows", (int)Shadows); node.Add("shadowResolution", (int)ShadowResolution); node.Add("shadowProjection", (int)ShadowProjection); node.Add("shadowCascades", (int)ShadowCascades); node.Add("shadowDistance", ShadowDistance); node.Add("shadowNearPlaneOffset", ShadowNearPlaneOffset); node.Add("shadowCascade2Split", ShadowCascade2Split); node.Add("shadowCascade4Split", ShadowCascade4Split.ExportYAML(container)); node.Add("shadowmaskMode", (int)ShadowmaskMode); node.Add("blendWeights", (int)BlendWeights); node.Add("textureQuality", (int)TextureQuality); node.Add("anisotropicTextures", (int)AnisotropicTextures); node.Add("antiAliasing", (int)AntiAliasing); node.Add("softParticles", SoftParticles); node.Add("softVegetation", SoftVegetation); node.Add("realtimeReflectionProbes", RealtimeReflectionProbes); node.Add("billboardsFaceCameraPosition", BillboardsFaceCameraPosition); node.Add("vSyncCount", (int)VSyncCount); node.Add("lodBias", LodBias); node.Add("maximumLODLevel", MaximumLODLevel); // 2018 //node.Add("streamingMipmapsActive", StreamingMipmapsActive); //node.Add("streamingMipmapsAddAllCameras", StreamingMipmapsAddAllCameras); //node.Add("streamingMipmapsMemoryBudget", StreamingMipmapsMemoryBudget); //node.Add("streamingMipmapsRenderersPerFrame", StreamingMipmapsRenderersPerFrame); //node.Add("streamingMipmapsMaxLevelReduction", StreamingMipmapsMaxLevelReduction); //node.Add("streamingMipmapsMaxFileIORequests", StreamingMipmapsMaxFileIORequests); node.Add("particleRaycastBudget", ParticleRaycastBudget); node.Add("asyncUploadTimeSlice", AsyncUploadTimeSlice); node.Add("asyncUploadBufferSize", AsyncUploadBufferSize); node.Add("resolutionScalingFixedDPIFactor", ResolutionScalingFixedDPIFactor); node.Add("excludedTargetPlatforms", GetExcludedTargetPlatforms(container.Version, container.Flags).ExportYAML()); return(node); }