- Home /
Question by
RenanGusman · Oct 10, 2017 at 05:44 PM ·
post processingpost-process-effect
Is it possible to turn on and off a certain post processing effect by a script?
I need to turn my blur on and off on a certain part of my game, but I can't find a way to do it.
Comment
Answer by jchester07 · Oct 11, 2017 at 07:40 AM
Yes you can. Get a reference of your post processing profile first from the camera to where the PostProcessingBehaviour script is attached.
public PostProcessingBehaviour ppb;
Then you can set it like this
ppb.profile.bloom.enabled = true;
Your answer
Follow this Question
Related Questions
Weird post processing on blur default pipeline 1 Answer
Changing URP Volume values in code not working 0 Answers
Post Processing Layer does not have any effect 1 Answer
Curved Screen Post Processing Effect 1 Answer
Post Processing Effects not working despite correctly converting project to URP 0 Answers