找回密码
 注册帐号

扫一扫,访问微社区

camera.orthographicsize 正交大小

2015-1-4 04:57| 发布者: 杨炎| 查看: 3837| 评论: 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;

相关阅读

文章点评
相关文章