Unity 2D Camera Zoom In Zoom Out October 5, 2016 / , ,

Zoom Out:
myCamera.orthographicSize = Mathf.MoveTowards(Camera.main.orthographicSize,18f,Time.deltaTime*2f);// 10;

Zoom In:
myCamera.orthographicSize = Mathf.Lerp(Camera.main.orthographicSize,2f,Time.deltaTime*0.3f);//4;