找回密码
 注册帐号

扫一扫,访问微社区

camera.allcameras 所有相机

2015-1-4 01:07| 发布者: 杨炎| 查看: 1683| 评论: 0|原作者: 蛮牛|来自: unity3d脚本manual

摘要: camera.allcameras 所有相机static varallcameras: cameradescription描述returns all enabled cameras in the scene.返回场景中所有启用的相机。c#javascriptusing unityengine;using system.collections;public cl ...

camera.allcameras 所有相机

static varallcameras: camera[]

description描述

returns all enabled cameras in the scene.

返回场景中所有启用的相机。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public int count = camera.allcameras.length;

public void awake() {

print("we've got " + count + " cameras");

}

}

var count : int = camera.allcameras.length;

print ("we've got " + count + " cameras");

相关阅读

文章点评
相关文章