Does anyone know how I can screenshot different scenes in the mobile phone.? I got this script but it only allow MAXIMUM OF ONE SCREENSHOT only, so everytime I tried to perform the screenshot it doesn’t save anymore
void OnGUI() {
if (GUI.Button (new Rect(50,50,150,30), "Capture")) {
string filename = "shot.png";
Application.CaptureScreenshot(filename);
if (QCARRuntimeUtilities.IsPlayMode()) {
// if in PlayMode, the screenshot will be saved
// to the project directory
Debug.Log ("Saved screenshot to " + filename);
}
else {
// if running on Device, the screenshot will be saved
// to the Application.persistentDataPath directory
Debug.Log ("Saved screenshot to " + Application.persistentDataPath + "/" + filename);
}
}
}