|
How do I create a Camera object in csharp script. I also want to assign it as MainCamera with tags. Currently I am getting this error :
These are the two lines of code which concern the camera : ...and
(comments are locked)
|
|
You have not assigned a Camera. You normally would drag one in via the Inspector, but to anwser your question, you would do something like (untested):
(comments are locked)
|
