开始上班了,写一下上班后的第一篇博客,关于unity相机视口自适应,16:9
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CameraRectFix : MonoBehaviour
{
private Camera _camera;
private float _aspect;
private float _nowHeight;
private float _nowWidth;
private float _designAspect;
private float _