找回密码
 注册帐号

扫一扫,访问微社区

component.camera 摄像机

2015-1-5 03:27| 发布者: 杨炎| 查看: 2034| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: component.camera 摄像机varcamera:cameradescription描述thecameraattached to thisgameobject(null if there is none attached).camera附加到gameobject(游戏物体)(如无附加则为空)。c#javascriptusing unitye ...

component.camera 摄像机

varcamera:camera

description描述

thecameraattached to thisgameobject(null if there is none attached).

camera附加到gameobject(游戏物体)(如无附加则为空)。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

camera.fieldofview = 40;

}

}

camera.fieldofview = 40;

相关阅读

文章点评
相关文章