private void Start() {
Camera cam = (Camera)FindObjectOfType(typeof(Camera)); // see if camera belongs to the type :camera or send null
if (cam)
Debug.Log("Camera object found: " + cam.name);//main camera
else
Debug.Log("No Camera object could be found");
}
What is this if(cam)
? Please help me to solve the problem thanks