Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Camera zoom

Discussion in 'Scripting' started by Fekzh21, Feb 21, 2019.

  1. Fekzh21

    Fekzh21

    Joined:
    Dec 29, 2018
    Posts:
    18
    As I could do to create a button that when clicked zoom in the camera slowly and stay that way until you restart the scene
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    4,353
    To cause a camera zoom, you gradually reduce the .fieldOfView of your camera over the course of several frames.