找回密码
 注册帐号

扫一扫,访问微社区

camera.pixelrect 像素矩形

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

摘要: camera.pixelrect 像素矩形varpixelrect:rectdescription描述where on the screen is the camera rendered in pixel coordinates.相机被渲染到屏幕像素中的位置。c#javascriptusing unityengine;using system.collec ...

camera.pixelrect 像素矩形

varpixelrect:rect

description描述

where on the screen is the camera rendered in pixel coordinates.

相机渲染到屏幕像素中的位置。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void update() {

rectr = camera.pixelrect;

print("camera displays from " + r.xmin + " to " + r.xmax + " pixel");

}

}

function update () {

var r :rect= camera.pixelrect;

print ("camera displays from " + r.xmin + " to " + r.xmax + " pixel");

}

相关阅读

文章点评
相关文章