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
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
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