If it's the only camera inside the scene and tagged as MainCamera, just use
View = Camera.main;
to set as a reference
-
The easiest solution is to create a public variable and drag-n-drop the camera into the field in the inspector
public Camera View;
↧