Log in or register to post comments

Screenshot Saving

April 10, 2017 - 7:59am #1

Good evening,

I've read various threads in the forum on the screenshot capture, but I did not understand that you can now use one single script for both Android and iOs.

I can click the screen, but I can't save it.

This is the script I used:

void OnGUI()

{

  if (GUI.Button(new Rect(20, 20, 150, 100), "CaptureScreenshot")) {

   Application.CaptureScreenshot("Screenshot.png");

   print(Application.persistentDataPath);

  }

}



// Update is called once per frame

void Update () {

 

}

}

 



What should I add for save the file on the device or share?

 

Thanks in advance for the help

Log in or register to post comments