找回密碼
 注冊帳號

掃一掃,訪問微社區

camera.orthographicsize 正交大小

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

摘要: camera.orthographicsize 正交大小varorthographicsize: floatdescription描述camera's half-size when in orthographic mode.在正交模式下相機的一半尺寸。this is half of the vertical size of the viewing volum ...

camera.orthographicsize 正交大小

varorthographicsize: float

description描述

camera's half-size when in orthographic mode.

在正交模式下相機的一半尺寸。

this is half of the vertical size of the viewing volume. horizontal viewing size varies depending on viewport's aspect ratio. orthographic size is ignored when camera is not orthographic (seeorthographic).

這個為視體垂直大小的一半,水平視口到校取決于視口的長寬比,相機不是正交時,orthographic size被忽略(參考orthographic)

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

camera.orthographic = true;

camera.orthographicsize = 5;

}

}

// set the camera's ortho size to 5

//設置相機的正交尺寸為5

camera.orthographic = true;

camera.orthographicsize = 5;

using specifically the main camera:

使用專門的主相機:

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

camera.main.orthographic = true;

camera.main.orthographicsize = 5;

}

}

// set the main camera's ortho size to 5

//設置主相機的正交尺寸為5

camera.main.orthographic = true;

camera.main.orthographicsize = 5;

相關閱讀

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