找回密碼
 注冊帳號

掃一掃,訪問微社區

application.capturescreenshot 截屏

2014-12-31 07:30| 發布者: 楊炎| 查看: 2988| 評論: 0|原作者: 蠻牛|來自: unity3d腳本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");

}

文章點評
女校游泳队彩金