Enable/Disable Post Processing

I am trying to create an option to enable and disable post processing. What is meant to be put in between the <>?

        GetComponent<>().enabled = true;


Check the Inspector of your game object. Which component do you want to disable? Look its name up in the API to figure out what you need to wrap in the <>.

See also:

I want to disable Post Process Volume.

What render pipeline are you on.

I’m sorry, I am not so sure what you mean.

Are you able to click on the question mark? Maybe it’ll bring you to the API. If not, maybe this is the class you are looking for:


The ? brought me to this page.


In that case, check the link I posted in my previous answer. Use the classname inside the <>, and don’t forget to add the correct namespace. You can find the relevant information on the linked website.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms