- Home /
Question by
TheFishInABowl · Dec 20, 2019 at 07:58 PM ·
c#camerarenderingpost processinguniversal
How to toggle Post Processing on new Camera component in C#?
Hi.
How do I toggle the Post Processing on new Camera component in C#?
Its the new camera component when using Unity 2019.3 and URP. All the documentation is old: https://docs.unity3d.com/2019.3/Documentation/Manual/class-Camera.html
And doesn't say how to access "Rendering" or "Projection" and the variables under these tabs.
camerapost.png
(20.3 kB)
Comment
Answer by lgarczyn · Dec 21, 2019 at 07:07 PM
It appears that you need to use the PostProcessingVolume and TryGetSettings to toggle effects:
https://answers.unity.com/questions/1355103/modifying-the-new-post-processing-stack-through-co.html