protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { #warning TODO: values acording to read version (current 2017.3.0f3) YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("m_ClearFlags", ClearFlags); node.Add("m_BackGroundColor", BackGroundColor.ExportYAML(container)); node.Add("m_NormalizedViewPortRect", NormalizedViewPortRect.ExportYAML(container)); node.Add("near clip plane", NearClipPlane); node.Add("far clip plane", FarClipPlane); node.Add("field of view", FieldOfView); node.Add("orthographic", Orthographic); node.Add("orthographic size", OrthographicSize); node.Add("m_Depth", Depth); node.Add("m_CullingMask", CullingMask.ExportYAML(container)); node.Add("m_RenderingPath", (int)RenderingPath); node.Add("m_TargetTexture", TargetTexture.ExportYAML(container)); node.Add("m_TargetDisplay", TargetDisplay); node.Add("m_TargetEye", (int)TargetEye); node.Add("m_HDR", HDR); node.Add("m_AllowMSAA", AllowMSAA); node.Add("m_AllowDynamicResolution", AllowDynamicResolution); node.Add("m_ForceIntoRT", ForceIntoRT); node.Add("m_OcclusionCulling", OcclusionCulling); node.Add("m_StereoConvergence", StereoConvergence); node.Add("m_StereoSeparation", StereoSeparation); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add(ClearFlagsName, ClearFlags); node.Add(BackGroundColorName, BackGroundColor.ExportYAML(container)); // 2018 node.Add(ProjectionMatrixModeName, (int)ProjectionMatrixMode); node.Add(SensorSizeName, SensorSize.ExportYAML(container)); node.Add(LensShiftName, LensShift.ExportYAML(container)); node.Add(FocalLengthName, FocalLength); node.Add(NormalizedViewPortRectName, NormalizedViewPortRect.ExportYAML(container)); node.Add(NearClipPlaneName, NearClipPlane); node.Add(FarClipPlaneName, FarClipPlane); node.Add(FieldOfViewName, FieldOfView); node.Add(OrthographicName, Orthographic); node.Add(OrthographicSizeName, OrthographicSize); node.Add(DepthName, Depth); node.Add(CullingMaskName, CullingMask.ExportYAML(container)); node.Add(RenderingPathName, (int)RenderingPath); node.Add(TargetTextureName, TargetTexture.ExportYAML(container)); node.Add(TargetDisplayName, TargetDisplay); node.Add(TargetEyeName, (int)TargetEye); node.Add(HDRName, HDR); node.Add(AllowMSAAName, AllowMSAA); node.Add(AllowDynamicResolutionName, AllowDynamicResolution); node.Add(ForceIntoRTName, ForceIntoRT); node.Add(OcclusionCullingName, OcclusionCulling); node.Add(StereoConvergenceName, StereoConvergence); node.Add(StereoSeparationName, StereoSeparation); return(node); }