Camera.ResetAspect 重设长宽比

function ResetProjectionMatrix () : void

Description描述

Revert the aspect ratio to the screen's aspect ratio.

恢复长宽比为屏幕的长宽比。

Call this to end the effect of setting aspect.

调用这个结束aspect设置的效果。

using UnityEngine;

using System.Collections;



public class example : MonoBehaviour {

	public void Awake() {

		camera.ResetAspect();

	}

}
camera.ResetAspect();
Page last updated: 2011-3-7