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;
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;
Hi,
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.
file:///C:/Program%20Files/Unity/Hub/Editor/2020.2.0b14/Editor/Data/Documentation/en/ScriptReference/MonoBehaviour.html
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.