using UnityEngine;
using System.Collections;
public class ScreenUnit : MonoBehaviour {
private float height = 480;
private float width = 854;
private float rate1 = 480 / 854.0f;
private float rate2;
// Use this for initialization
void Start () {
rate2 = Screen.height / (float)Screen.width;
gameObject.GetComponent<Camera>().fieldOfView *= 1 + (rate2 - rate1);
}
}将脚本托给相机,就可以实现简单的多机型3D视觉适配原文:http://blog.csdn.net/hongyouwei/article/details/45370195