blur = GameObject.FindGameObjectsWithTag("MainCamrera").GetComponent(); wont work

when I put this in
blur = GameObject.FindGameObjectsWithTag(“MainCamrera”).GetComponent();
it gives GetComponent(); will not work!

Thx for the help!

  • You only want one object, so FindGameObjectWithTag not FindGameObjectsWithTag.
  • “MainCamera” not “MainCamrera”
  • What component do you want?

You need something like:

GameObject.FindGameObjectWithTag("MainCamera").GetComponent<Blur>();