"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Screenshot Saving

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