找回密码
 注册帐号

扫一扫,访问微社区

camera.orthographic 正交

2015-1-4 04:47| 发布者: 杨炎| 查看: 2017| 评论: 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.

一分极速PK10为true,相机的视野由orthographicsize定义。一分极速PK10为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;

相关阅读

文章点评
相关文章