I have a valid script that takes a photo with the AR camera and saves it in data files of Android, like so :
screenShotName = "Dorot" + System.DateTime.Now.ToString("yyyy-MM-dd-HH-mm-ss") + ".png";
File.WriteAllBytes(Application.persistentDataPath + "/" + screenShotName, screenshot.EncodeToPNG());
GameObject.Find("MainCanvas").GetComponent<Canvas>().enabled = true;
How can I change the persistentDataPath with the right path of Android Image Gallery.
Thanks.
My files\ Internal storage\ Android\ data\ com.CompanyName.AppName\ files.
Sorry but that is a non existing path on an Android device. Use a better file explorer app on your device to find out the real path. – Cajole