|
Is it possible to have the Unity camera change its lens angle? (ie: a zoom lens) If so, how to implement? I would like to have a more telephoto lens for part of my project. Ryder
(comments are locked)
|
|
From the inspector, you can change the Field of view setting on the camera From code, you can change camera.fieldOfView (which takes a float value) Documented here: http://unity3d.com/support/documentation/ScriptReference/Camera-fieldOfView.html
(comments are locked)
|
|
Yes you can... by using Camera.fieldOfView. The following will set the lens to a 30 degree field of view, which is noticibly "zoomed in".
(comments are locked)
|
