public void Save(UnityEngine.Rendering.PostProcessing.AutoExposure layer) { if (layer != null) { enabled = new BoolValue(layer.enabled); filtering = new Vector2Value(layer.filtering); minLuminance = new FloatValue(layer.minLuminance); maxLuminance = new FloatValue(layer.maxLuminance); keyValue = new FloatValue(layer.keyValue); speedUp = new FloatValue(layer.speedUp); speedDown = new FloatValue(layer.speedDown); eyeAdaptation = new EyeAdaptationValue(layer.eyeAdaptation); } }
public void Load(UnityEngine.Rendering.PostProcessing.AutoExposure layer) { if (layer != null) { enabled.Fill(layer.enabled); layer.active = layer.enabled.value; filtering.Fill(layer.filtering); minLuminance.Fill(layer.minLuminance); maxLuminance.Fill(layer.maxLuminance); keyValue.Fill(layer.keyValue); speedUp.Fill(layer.speedUp); speedDown.Fill(layer.speedDown); eyeAdaptation.Fill(layer.eyeAdaptation); } }