Projector.fieldOfView 视野

var fieldOfView : float

Description描述

The field of view of the projection in degrees.

该投影的视野,以度为单位。

This is the vertical field of view; horizontal FOV varies depending on the aspectRatio. Field of view is ignored when projector is orthographic (see orthographic).

这是垂直视野;水平视野变化取决于aspectRatio。当投影器是正交时fieldOfView被忽略 (参见orthographic

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		Projector proj = GetComponent<Projector>();
		proj.fieldOfView = 80.0F;
	}
}
function Start() {
	var proj : Projector = GetComponent(Projector);
	proj.fieldOfView = 80.0;
}
最后修改:2011年3月19日 Saturday 14:29

本脚本参考基于Unity 3.4.1f5

英文部分版权属©Unity公司所有,中文部分© Unity圣典 版权所有,未经许可,严禁转载 。