Camera can not show the object that is close

When I use create camera by code or by 《Menu Bar and select Create > Camera》, the object can not show in the image when the camera is close to the object(right viewport) . But when I create a camera by 《create a camera from view》 , the object can be showed (left viewport) .

what is the difference between this two operation? And how to config with the camera when creating the camera with code to make the camera can see the object that is close

It is case by the clip range, can be solve by:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.