예제 #1
0
    public void Screenshot()
    {
        var          imageTitle = "Screenshot-" + System.DateTime.Now.ToString("yy-MM-dd-hh-mm-ss");
        const string folderName = "com.javifont.camera";

        AGGallery.SaveImageToGallery(imageToGallery, imageTitle, folderName, ImageFormat.JPEG);
        AGUIMisc.ShowToast("Image saved in the gallery", AGUIMisc.ToastLength.Long);
    }
예제 #2
0
 public static void SavePhoto(Texture2D texture)
 {
 #if UNITY_IOS
     IGImagePicker.SaveImageToGallery(texture);
 #elif UNITY_ANDROID
     string       imageTitle = "mcm house ar " + System.DateTime.Now.ToString("yy-MM-dd-hh-mm-ss");
     const string folderName = "mcm house ar screenshots";
     AGGallery.SaveImageToGallery(texture, imageTitle, folderName, ImageFormat.JPEG);
 #endif
 }