Coderock

--------------------------------
link hover image

Unity 2D Camera Zoom In Zoom Out

Frontpage calendar image 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;