- Home /
Post Processing Volume
I'm trying to create a script to edit the post processing effects when you change between the set graphics modes. However, when I go into the editor too assign the volume it doesn't allow me to assign it in the Volume slot. Why is this?
Here is the relevant code:
Answer by Llama_w_2Ls · Feb 09, 2021 at 09:13 AM
You should be using PostProcessVolume
instead of volume. For example:
using UnityEngine;
using UnityEngine.Rendering.PostProcessing;
public class Effects : MonoBehaviour
{
public PostProcessVolume volume;
}
Make sure you're using UnityEngine.Rendering.PostProcessing. This works for me in the standard unity template, in Unity 2020, with the new PPStack. @Axel_Blaze
Your answer
Follow this Question
Related Questions
Lens Distortion does not do anything when changed through script 1 Answer
Post Processing Effects not working despite correctly converting project to URP 0 Answers
Modifying the new Post-Processing Stack through code? 6 Answers
Can't change Post processing value from script with HDRP keep getting a TrygetSettings error 0 Answers
How do i get depth of field from volume? 0 Answers