Projector.orthographic 正交
var orthographic : bool
Description描述
Is the projection orthographic (true) or perspective (false)?
投射是正交的(true)还是透视的(false)?
When orthographic is true, projection is defined by orthographicSize. When orthographic is false, projection is defined by fieldOfView.
当正交为true时,投影由orghographicSize定义。 当正交为false时,投射由fieldOfView定义
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
void Start() {
Projector proj = GetComponent<Projector>();
proj.orthographic = true;
}
}
function Start() {
var proj : Projector = GetComponent (Projector);
proj.orthographic = true;
}
最后修改:2011年3月19日 Saturday 15:50