Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rgarlik/aa037c720e5c42586b0cfb02ab36aa8a to your computer and use it in GitHub Desktop.
Save rgarlik/aa037c720e5c42586b0cfb02ab36aa8a to your computer and use it in GitHub Desktop.
PostProcessChange.cs
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Rendering;
using UnityEngine.Rendering.Universal;
using UnityEngine.UI;
public class PostProcessChange : MonoBehaviour
{
public Slider TemperatureSlider;
// Set to update every time the slider is updated
public void SetColorAccent()
{
WhiteBalance wb;
if(PPVolume.profile.TryGet(out wb))
{
wb.temperature.value = TemperatureSlider.value * 200 - 100;
}
// This works for any property of any post-processing effect
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment