Question by
JeffreyVentrella · Jun 22, 2016 at 06:00 AM ·
c#cameranearclipplane
How do I set the near clipping plane of the camera in C#?
I am accessing the camera in my script in the Start method like this:
_camera = GetComponent(Camera);
How do I query or adjust the near clipping plane? -j
Comment
Answer by YoungDeveloper · Jun 22, 2016 at 06:33 AM
Camera.main.nearClipPlane = 0.3f;
That worked. Thank you!
But: to be more accurate: the correct answer is:
_camera.nearClipPlane = 0.3f;