Here’s where I’m at.
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
public class Options : MonoBehaviour
{
MotionBlur blur;
public PostProcessVolume currentPP;
void Start()
{
blur = currentPP.GetComponent<MotionBlur>();
blur.enabled.Override(true);
}
void Update()
{
if (Input.GetKeyDown(KeyCode.B))
if (blur.enabled) blur.active = false;
else blur.active = true;
}
}
I’d like to toggle motion blur on/off for the active post process volume but finding it more difficult than anticipated.
Not sure how to access the motion blur component of the layer.
Poked around here looking for an answer but didn’t really find a solution: Manipulating the Stack · Unity-Technologies/PostProcessing Wiki · GitHub
Any help is appreciated