application.capturescreenshot 截屏

2014-12-31 07:30| 发布者: 杨炎| 查看: 2775| 评论: 0|原作者: 蛮牛|来自: yzc88亚洲城脚本manual

摘要: application.capturescreenshot 截屏static functioncapturescreenshot(filename: string) : voiddescription描述captures a screenshot at path filename as a png file.捕捉屏幕作为一个png文件保存在路径filename ...

application.capturescreenshot 截屏

static functioncapturescreenshot(filename: string) : void

description描述

captures a screenshot at path filename as a png file.

捕捉屏幕作为一个png文件保存在路径filename。简单来说就是截屏

if the file exists already, it will be overwritten. this function does nothing if used from inside the web player or a dashboard widget.

如果文件已经存在,它将被覆盖。如果在web播放器或者dashboard窗口中使用该函数,它将不做任何事情。

c#

javascript

using unityengine;

using system.collections;

public class example :monobehaviour{

void onmousedown() {

application.capturescreenshot("screenshot.png");

}

}

function onmousedown() {

application.capturescreenshot("screenshot.png");

}

文章点评