Vector3 p0 = Camera.main.transform.position;
Vector3 p01 = p0 - Camera.main.transform.right * Input.GetAxisRaw("Mouse X") * sensitivityAmt * Time.timeScale;
Vector3 p03 = p01 - Camera.main.transform.up * Input.GetAxisRaw("Mouse Y") * sensitivityAmt * Time.timeScale;
Camera.main.transform.position = p03;
上面代码实现鼠标拖动,左键平移
FR:海涛高软(hunk Xu)