| filename | スクリーンショットのファイルを保存するパス名 |
| superSize | 解像度を上げるための設定 |
PNG ファイルとして filename のパスでスクリーンショットを撮ります。
もしファイルが存在する場合は上書きされます。
モバイルプラットフォーム上では永続データパスにファイル名を付け加えます。詳細は Application.persistentDataPath を参照してください。
When superSize parameter is larger than 1, a larger resolution screenshot will be
produced. For example, passing 4 will make the screenshot be 4x4 larger than it normally
would. This is useful to produce screenshots for printing.
function OnMouseDown() {
Application.CaptureScreenshot("Screenshot.png");
}
Android では、この関数の結果はすぐに返されます。スクリーンショットは後で出来上がります。