Camera.orthographicSize not showing up?

Hello,

Just wondering why i cannot see GetComponent< Camera>().orthographicSize variable for my camera. Nothing is showing up in VS and Unity is throwing out errors.

Thanks!

PS. I Know the space is there :smiley:

You need to specify which camera you’re talking about, for instance “Camera.main.othographicSize”.

Although when you do it with the GetComponent-command, you shouldn’t need to specify the instance.

Ok so complete blonde moment…

I thought i had used a different name for my script but it was in fact named Camera as well.

Problem solved :blush: