在这里插入代码片
```using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class hanser : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if (Input.GetMouseButtonDown(1))
{
Camera.main.fieldOfView = 20;
}
if (Input.GetMouseButtonUp(1))
{
Camera.main.fieldOfView = 60;
}
}
}
unity使屏幕放大
最新推荐文章于 2023-09-11 20:54:17 发布