Unity Camera
作者:互联网
Field of View:
//设置FOV Axis=Vertical时,fieldOfView的值为45。
camera.fieldOfView=45;
//设置FOV Axis=Horizontal时,fieldOfView的值为45。
camera.fieldOfView = 2 * Mathf.Atan(Mathf.Tan(45* Mathf.Deg2Rad * 0.5f) / camera.aspect) * Mathf.Rad2Deg;
设置相机剪裁面的宽高比:
camera.aspect=640f/960f;
标签:FOV,fieldOfView,Camera,45,Mathf,Unity,camera,aspect 来源: https://www.cnblogs.com/kingBook/p/13658009.html