📜  如何使用鼠标滚轮统一移动相机 - C#代码示例

📅  最后修改于: 2022-03-11 14:48:38.291000             🧑  作者: Mango

代码示例1
float scroll = Input.GetAxis ("Mouse ScrollWheel");
    transform.LookAt (target);
    transform.Translate(0, 0, scroll * speed, Space.Self);