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;
}
Page last updated: 2011-3-19