camera的aspect默认是与screen保持一致,可以通过脚本将其设为指定值,如下: using UnityEngine;using System.Collections; public class makeCameraViewWequalsH : MonoBehaviour { // Use this for initialization void Start () { gameObject.GetComponent<Camera> ().aspect = 0.1f…
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Player : MonoBehaviour { public GameObject CapsulePlayer, MainCamerahead; private float aixsX, aixsY, mouseScroll; private int moveSpeed; ; ; ; private float…