找回密碼
 注冊帳號

掃一掃,訪問微社區

camera.orthographic 正交

2015-1-4 04:47| 發布者: 楊炎| 查看: 2013| 評論: 0|原作者: 蠻牛|來自: unity3d腳本manual

摘要: camera.orthographic 正交varorthographic: booldescription描述is the camera orthographic (true) or perspective (false)?相機是正交的(true),是透視的(false)?when ortho is true, camera's viewing volum ...

camera.orthographic 正交

varorthographic: bool

description描述

is the camera orthographic (true) or perspective (false)?

相機是正交的(true),是透視的(false)?

when ortho is true, camera's viewing volume is defined byorthographicsize. when orthographic is false, camera's viewing volume is defined byfieldofview.

如果為true,相機的視野由orthographicsize定義。如果為false,相機的視野由fieldofview定義。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

camera.orthographic = true;

}

}

// set the camera to be orthograpghic

//設置相機為正交

camera.orthographic = true;

specifically for the main camera:

用于專門的主相機:

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

camera.main.orthographic = true;

}

}

// set the main camera to be orthographic

//設置主相機為正交

camera.main.orthographic = true;

相關閱讀

文章點評
相關文章
女校游泳队彩金