protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.ExportVersion)); node.Add(TypeName, (int)Type); node.Add(ColorName, Color.ExportYAML(container)); node.Add(IntensityName, Intensity); node.Add(RangeName, Range); node.Add(SpotAngleName, SpotAngle); node.Add(CookieSizeName, CookieSize); node.Add(ShadowsName, Shadows.ExportYAML(container)); node.Add(CookieName, Cookie.ExportYAML(container)); node.Add(DrawHaloName, DrawHalo); node.Add(FlareName, Flare.ExportYAML(container)); node.Add(RenderModeName, (int)RenderMode); node.Add(CullingMaskName, CullingMask.ExportYAML(container)); node.Add(LightmappingName, (int)Lightmapping); node.Add(AreaSizeName, AreaSize.ExportYAML(container)); node.Add(BounceIntensityName, BounceIntensity); node.Add(ColorTemperatureName, ColorTemperature); node.Add(UseColorTemperatureName, UseColorTemperature); node.Add(ShadowRadiusName, 0); node.Add(ShadowAngleName, 0); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { #warning TODO: serialized version acording to read version (current 2017.3.0f3) YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(GetSerializedVersion(container.Version)); node.Add("m_Type", (int)Type); node.Add("m_Color", Color.ExportYAML(container)); node.Add("m_Intensity", Intensity); node.Add("m_Range", Range); node.Add("m_SpotAngle", SpotAngle); node.Add("m_CookieSize", CookieSize); node.Add("m_Shadows", Shadows.ExportYAML(container)); node.Add("m_Cookie", Cookie.ExportYAML(container)); node.Add("m_DrawHalo", DrawHalo); node.Add("m_Flare", Flare.ExportYAML(container)); node.Add("m_RenderMode", (int)RenderMode); node.Add("m_CullingMask", CullingMask.ExportYAML(container)); node.Add("m_Lightmapping", (int)Lightmapping); node.Add("m_AreaSize", AreaSize.ExportYAML(container)); node.Add("m_BounceIntensity", BounceIntensity); node.Add("m_ColorTemperature", ColorTemperature); node.Add("m_UseColorTemperature", UseColorTemperature); #warning ??? node.Add("m_ShadowRadius", 0); node.Add("m_ShadowAngle", 0); return(node); }
protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container) { YAMLMappingNode node = base.ExportYAMLRoot(container); node.AddSerializedVersion(ToSerializedVersion(container.ExportVersion)); node.Add(TypeName, (int)Type); if (HasShape(container.ExportVersion)) { node.Add(ShapeName, (int)Shape); } node.Add(ColorName, Color.ExportYAML(container)); node.Add(IntensityName, Intensity); node.Add(RangeName, Range); node.Add(SpotAngleName, SpotAngle); if (HasInnerSpotAngle(container.ExportVersion)) { node.Add(InnerSpotAngleName, InnerSpotAngle); } node.Add(CookieSizeName, CookieSize); node.Add(ShadowsName, Shadows.ExportYAML(container)); node.Add(CookieName, Cookie.ExportYAML(container)); node.Add(DrawHaloName, DrawHalo); if (HasBakingOutput(container.ExportVersion, container.ExportFlags)) { node.Add(BakingOutputName, BakingOutput.ExportYAML(container)); } node.Add(FlareName, Flare.ExportYAML(container)); node.Add(RenderModeName, (int)RenderMode); node.Add(CullingMaskName, CullingMask.ExportYAML(container)); if (HasRenderingLayerMask(container.ExportVersion)) { node.Add(RenderingLayerMaskName, RenderingLayerMask); } node.Add(LightmappingName, (int)Lightmapping); node.Add(AreaSizeName, AreaSize.ExportYAML(container)); node.Add(BounceIntensityName, BounceIntensity); node.Add(ColorTemperatureName, ColorTemperature); node.Add(UseColorTemperatureName, UseColorTemperature); if (HasBoundingSphereOverride(container.ExportVersion)) { node.Add(BoundingSphereOverrideName, BoundingSphereOverride.ExportYAML(container)); node.Add(UseBoundingSphereOverrideName, UseBoundingSphereOverride); } node.Add(ShadowRadiusName, GetShadowRadius(container.Version, container.Flags)); node.Add(ShadowAngleName, GetShadowAngle(container.Version, container.Flags)); return(node); }