Hi everybody, how can i do a Binoculars on my FPS, to zoom in and out at the distance and see far away on the terrain?, if you have any idea, Thank you.
Change the field of view of the camera:
Camera.main.fieldOfView = 80;
This is the angle the camera can see. The smaller the angle the more ‘zoomed in’ the camera will appear. The topic is here:
http://unity3d.com/support/documentation/ScriptReference/Camera-fieldOfView.html
also you could have 2 cameras and swap between them