首页 > 代码库 > Input.GetAxis("Mouse ScrollWheel")控制摄像机视野缩放

Input.GetAxis("Mouse ScrollWheel")控制摄像机视野缩放

Camera.main.fieldOfView += Input.GetAxis("Mouse ScrollWheel") * 10;
Debug.Log(Camera.main.fieldOfView);

技术分享

技术分享

 

Input.GetAxis("Mouse ScrollWheel")控制摄像机视野缩放