Skip to content

Instantly share code, notes, and snippets.

View saitocastel1900's full-sized avatar
🎮
Game Dev

まかろに saitocastel1900

🎮
Game Dev
  • Individual
  • Kanagawa, Japan
View GitHub Profile
@cellfusion
cellfusion / gist:9777976
Created March 26, 2014 06:51
Unity でスクリーンショットを撮って画像を表示
// Screenshot を撮る
Application.CaptureScreenshot("screenshot.png");
// プラットフォームごとに保存位置変わる?
string path = "";
switch (Application.platform) {
case RuntimePlatform.IPhonePlayer:
path = Application.persistentDataPath + "/screenshot.png";
break;
case RuntimePlatform.Android: