找回密码
 注册帐号

扫一扫,访问微社区

camera.pixelwidth 相机宽度

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

摘要: camera.pixelwidth 相机宽度varpixelwidth: floatdescription描述how wide is the camera in pixels (read only).相机有多宽,以像素单位(只读)。c#javascriptusing unityengine;using system.collections;public ...

camera.pixelwidth 相机宽度

varpixelwidth: float

description描述

how wide is the camera in pixels (read only).

相机有多宽,以像素单位(只读)。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

public void awake() {

print("camera is " + camera.pixelwidth + " pixels wide");

}

}

print ("camera is " + camera.pixelwidth + " pixels wide");

相关阅读

文章点评
相关文章