Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Capture and Save plugin is on assets store

Discussion in 'Assets and Asset Store' started by DeveshPandey, Jun 18, 2014.

  1. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    CaptureAndSave is a great plugin for game developers who want to capture screen and save to Camera roll or Picture folder of the native platform.

    Features :
    - Capture and save screenshots to your My Picture folder by default on PC and MAC.
    - Capture and save screenshots to your camera roll by default on iOS.
    - Capture and save screenshots in your specific path on MAC and PC.
    - Capture and save screenshots in your Picture folder on Android.
    - Capture and save full screenshot
    - Capture and save specified screen area.
    - Save your texture to gallery/ Camera roll
    - Fast Capturing than built-in method
    - Gallery refreshed after taking snapshot in android
    - Preview before saving to gallery.
    Capture and save screenshot rendered by camera in custom resolutions

    Note : GUI created in OnGUI() will not be capture in screenshot. Custom resolution means you can save screenshot in 1024x768, 1300x768, 1920x1080 or any other. This is supported to unity 5 or later.

    Included Files:
    - Integration Guide
    - Documentation
    - Example Scene

    For any query please drop me a email at devesh.pandey19@gmail.com .

    Visit to download
    https://unitydevelopers.blogspot.com/2018/09/save-screenshot-in-unity3d.html
     

    Attached Files:

    Last edited: Jun 29, 2020
  2. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Plugin updated!!

    Offer till 15 July 2014.
     
  3. bishulove123

    bishulove123

    Joined:
    Jul 12, 2014
    Posts:
    4
    Capture And Save Application not working
    Hello Devesh,
    I have purchased "Capture and Save" application from the asset store. Whenever I make a build of example project for android and ios, its unable to start the camera.
    I tried to visit your support website, but the page is not opening. Need your assistance to use the application as well as the plugin.
     
  4. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Thanks for purchasing my plugin, as we discussed in the emails, this plugin is not for taking snapshot from the device camera, this is for capture screenshot and save to the camera roll or picture gallery.

    What you can do is, launch device camera and take a snap, then you can transfer this image to camera roll by using my plugin which is already discussed by emails.

    If you need more help, then write me back.

    Regards,
    Devesh Pandey
     
  5. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hello Everyone,

    Thanks for purchasing my plugins, you guys liked my plugin more than my expectation therefore I am happy with the sale of this plugin. I hope you will like my upcoming plugins too.

    Due to the bumper sale, I am extending offered price till 31 July.

    Please feel free to write me your feedback to make quality product.

    Best Regards,
     
  6. bishulove123

    bishulove123

    Joined:
    Jul 12, 2014
    Posts:
    4
    Hey Devesh,
    Thank yo so much for your vluable time and effort to make my code working. Its a nice plugin with simple code.
    Its great working with you.
     
  7. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
  8. Wormy76

    Wormy76

    Joined:
    Sep 16, 2014
    Posts:
    3
    Hi Devesh

    I purchased your plugin. Its working great on most devices. However it crashes on iphone 5 . IT works fine on other retina devices. Any Advice ??
     
  9. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Can you please send me crash log?
    I will look on that and let you know.
     
  10. Wormy76

    Wormy76

    Joined:
    Sep 16, 2014
    Posts:
    3
    Sorry I dont have access to that . I sent a test build of my app to a friend with an iphone 5 running ios 8 .
    Could that be the issue ?
     
  11. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Yes, This is an issue, but if can provide me crash log then it will better to find the issue.
    Anyway, I am figuring out the issue, please allow me some time.
     
  12. skypu3

    skypu3

    Joined:
    Oct 2, 2013
    Posts:
    2
    The iOS 8 will crash if take the picture using plugin.
    At this line: [fileManager removeItemAtPath:imagePatherror:NULL];
    Get below crash log,
    Thanks.
    ================================================================================
    2014-09-25 14:02:15.663 test2[319:37909] Uncaught exception: NSInvalidArgumentException: -[NSSQLEntityKey fileSystemRepresentation]: unrecognized selector sent to instance 0x1e959d90

    (

    0 CoreFoundation 0x295cbe57 <redacted> + 150

    1 libobjc.A.dylib 0x36f40c8b objc_exception_throw + 38

    2 CoreFoundation 0x295d1189 <redacted> + 0

    3 CoreFoundation 0x295cf0a7 <redacted> + 714

    4 CoreFoundation 0x29501208 _CF_forwarding_prep_0 + 24

    5 Foundation 0x2a24efdb <redacted> + 54

    6 Foundation 0x2a223337 <redacted> + 774

    7 Foundation 0x2a24ebe3 <redacted> + 78

    8 test2 0x013b6380 -[picker image:didFinishSavingWithError:contextInfo:] + 220

    9 CoreFoundation 0x295d03e4 <redacted> + 68

    10 CoreFoundation 0x294fd845 <redacted> + 300

    11 PhotoLibraryServices 0x3207a9b1 <redacted> + 220

    12 PhotoLibraryServices 0x3207b315 <redacted> + 68

    13 libdispatch.dylib 0x04b69aeb _dispatch_call_block_and_release + 10

    14 libdispatch.dylib 0x04b69ad7 _dispatch_client_callout + 22

    15 libdispatch.dylib 0x04b6d4f7 _dispatch_main_queue_callback_4CF + 810

    16 CoreFoundation 0x29591be9 <redacted> + 8

    17 CoreFoundation 0x295902e9 <redacted> + 1512

    18 CoreFoundation 0x294de621 CFRunLoopRunSpecific + 476

    19 CoreFoundation 0x294de433 CFRunLoopRunInMode + 106

    20 GraphicsServices 0x308230a9 GSEventRunModal + 136

    21 UIKit 0x2cac8809 UIApplicationMain + 1440

    22 test2 0x00019f6c main + 288

    23 test2 0x00019e48 start + 40

    )

    2014-09-25 14:02:15.667 test2[319:37909] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSSQLEntityKey fileSystemRepresentation]: unrecognized selector sent to instance 0x1e959d90'

    *** First throw call stack:

    (0x295cbe3f 0x36f40c8b 0x295d1189 0x295cf0a7 0x29501208 0x2a24efdb 0x2a223337 0x2a24ebe3 0x13b6380 0x295d03e4 0x294fd845 0x3207a9b1 0x3207b315 0x4b69aeb 0x4b69ad7 0x4b6d4f7 0x29591be9 0x295902e9 0x294de621 0x294de433 0x308230a9 0x2cac8809 0x19f6c 0x19e48)

    libc++abi.dylib: terminating with uncaught exception of type NSException
     
  13. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Plugin updated for iOS 7 or lower.
    New feature are-
    - You can upload your texture to your web server
    - You can save your selected texture to gallery or camera roll.
    - Events

    Note : I have beta version for iOS 8, I am doing testing with iOS 8. If you already purchased CaptureAndSave plugin from Assets Store and want this beta version for iOS 8, then you can email me with your "Invoice Number" of purchase order, I will send you beta version for iOS 8.
     
    MrEsquire and kazamaninja like this.
  14. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    If anybody want to launch device camera and record video or image then you can use this plugin for Android.

    http://u3d.as/8t8
     
  15. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Capture and Save, now supported for iOS 8.
     
  16. brandon_cto

    brandon_cto

    Joined:
    Oct 23, 2012
    Posts:
    6
    Hello~

    I try to use this plugin for my iOS 8 project, and
    when running this functions [ UIImageWriteToSavedPhotosAlbum ] have an error.

    I changed your code like below:

    /*

    // delete from document directory

    NSFileManager *fileManager = [NSFileManager defaultManager];

    [fileManager removeItemAtPath:imagePath error:NULL];

    */

    NSString *message;

    NSString *title;

    if (!error) {

    title = NSLocalizedString(@"SaveSuccessTitle", @"");

    message = NSLocalizedString(@"SaveSuccessMessage", @"");

    } else {

    title = NSLocalizedString(@"SaveFailedTitle", @"");

    message = [error description];

    }

    UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title

    message:message

    delegate:nil

    cancelButtonTitle:NSLocalizedString(@"ButtonOK", @"")

    otherButtonTitles:nil];

    [alert show];

    [alert release];


    and I can see Alert like below :

    SaveFailedTitle
    Error
    Domain=ALAssetsLibraryErrorDomainCode=-3310 "Data unavailable"
    UserInfo=0x198e86c0
    {NSLocalizedRecoverySuggestion=Launch the Photos application,
    NSUnderlyingError=0x19a5b8e0 "Data unavailable",
    NSLocaliedDescription=Data unavailable}

    Please tell me how I can fix it.
     
  17. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hi brandon_cto,

    I sent you a email with updated plugins file, which work on IOS 8 too, and it will be live on assets store very soon, its in review.
     
  18. tohmjudson

    tohmjudson

    Joined:
    Sep 2, 2012
    Posts:
    18
    Hi Devesh,
    I keep getting the same error with the example file, trying to upload via php:

    Error : Image not uploaded, please check your security settings on server.
    UnityEngine.Debug:Log(Object)
    Example:OnError(String) (at Assets/CaptureAndSave/Example/Example.cs:35)
    <UploadToServer>c__Iterator2:MoveNext()

    What does this mean? I have tried allowing read, write, execute to everything... but nothing works.
     
  19. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hi Tohmjudson,

    As I have suggested you in email to approach any server administrator to look on the security settings, because there is any security setting which prevents you to upload.
     
  20. TahierGazerock

    TahierGazerock

    Joined:
    Jan 23, 2015
    Posts:
    1
    Hi Davesh.
    I'd like yo hide my UI while the screen is capturing, how to do it ?

    thank you..
     
  21. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hi,

    You have to hide it by yourself, you can disable your UI layer before calling function of my plugin and enable on OnComplete event.
     
  22. Smile-and-learn-digital-creations

    Smile-and-learn-digital-creations

    Joined:
    Apr 17, 2015
    Posts:
    1
    Hi,

    I have this error on Unity 5.3.2f1 exporting to iOS enabling bit code for arm64 target:

    ld: '/Users/.../Libraries/Plugins/IOS/libCaptureAndSave.a(SaveToCameraRoll.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64

    Do you have an update of the plugin with support for this?
     
  23. pl_ayground

    pl_ayground

    Joined:
    Dec 17, 2015
    Posts:
    60
    Hi, Any ideas why OnComplete is not called on iOS? (iOS 10.1, Unity 5.4.x)
     
  24. MorphVGX

    MorphVGX

    Joined:
    Jun 21, 2010
    Posts:
    60
    Yes. The onSuccess method is not being called in iOS. Can you help?
     
  25. brunoleos

    brunoleos

    Joined:
    May 14, 2014
    Posts:
    30
    Hi Devesh,

    Are you supporting the plugin Capture and Save?

    I found a bug in iOS. When you use the method SaveTextureToGallery(Texture2D), the texture is saved but the event is not fired. At the debug log of a development build in Xcode, I receive the message:

    SendMessage: object CaptureAndSave does not have receiver for function OnComplete!
    The same work for Android.

    It seems you are using SendMessage instead of Invoke for the OnSuccess event in this case for iOS.

    Could you please fix the dll and send a new version?

    Thanks for helping so far.
     
  26. vex3d

    vex3d

    Joined:
    Dec 8, 2016
    Posts:
    1

    Same problem, any news?
     
  27. Gulliver

    Gulliver

    Joined:
    Jan 8, 2013
    Posts:
    96
  28. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hi Gulliver,

    I replied you on email, please check and do what I suggested. I am waiting for your reply.
     
  29. Gulliver

    Gulliver

    Joined:
    Jan 8, 2013
    Posts:
    96
    For user of Xcode 8.x.x -- in order to make this plugin to work, you should add NSPhotoLibraryUsageDescription key into plist.info

    Without it -- you'll see
    SendMessage: object CaptureAndSave does not have receiver for function OnComplete!

    Thanks Davesh Pandey support
     
  30. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Follow these steps to add keys.
    http://unitydevelopers.blogspot.in/2017/05/add-keys-into-infoplist.html
     
  31. camipat91

    camipat91

    Joined:
    Jun 7, 2017
    Posts:
    1
    hi, my friend and I purchased your plugin. We need your help because after building it and testing it out we found out that when we press the button to capture the image(screenshot), the image turns out white.. Please can you help us,

    Regards
    Patrick Camilleri
     
  32. DeveshPandey

    DeveshPandey

    Joined:
    Sep 30, 2012
    Posts:
    221
    Hi,

    Can you write me at devesh.pandey19@gmail.com with your invoice id, I will resolve your problem as soon as possible.
     
  33. richardzzzarnold

    richardzzzarnold

    Joined:
    Aug 2, 2012
    Posts:
    137
    Hi brunoleos....were you ever able to work out a fix for this?