Augmented Reality Tutorial No. 34: Screenshot of Augmented Reality View and Sharing it on Facebook

Augmented Reality Facebook Sharing

In this Augmented Reality Facebook tutorial you can take a screenshot of augmented reality view and share it on Facebook or other social networks. Every function works properly only when exported on mobile Android devices.

Download # Unity3D 32 bit (download and install it, if you don’t have it already) (*.exe file)

Unity3D is also available to download from here

Download # Download and Import Vuforia for Unity3D Extension v5.0.5 (*.unitypackage file)

Unity3D extension is also available to download from here (there might be newer version)

Download # Print Euforia of Beauty Logo for Scene Augmentation and Create the Tracker (*.jpg file)

Download # You Can Use Already Created Tracker Based on Euforia of Beauty Logo (*.unitypackage file)

Download # C# Code for Taking a Screenshot and Share It (*.cs file)

Download # Archived Buttons (Snapshot, Share and Close App) (*.rar file)

Download # Download Android App and Install it to Your Device (the result to test it) (*.apk file)

Download # Download Whole Augmented Reality Screenshot Sharing Tutorial Project Files (the result to test it) (*.rar file)

Tags: , ,

62 Responses

  1. Hi i have one query after taking screenshot this screen shot is not save into gallary.so is their any solution for this.

    • Yeah, it’s not in the gallery, but it’s somewhere in your device’s memory. If you know how to modify this code in order to send the pictures to the gallery, please, let us all know! So far I achieved this (saving pictures to gallery) only by using Unity3D assets/plugins, which comes with a price.

  2. Hi,
    i’m and Interactive Developer using Unity3d, i sincerely need your help on how to integrate Vuforia and Googlecardboard sdk in Unity 3d for Architectural Visualizations.

    Great work with the tutorials.

    Thanks in Advance

    • Hello, John. Haven’t done anything on that yet. But I will soon, you can wait for a tutorial (2 to 3 months), but if you want it to be quicker it won’t be for free.

  3. hi,
    how can I take another snapshot and not to replace the older one.
    i want to create a snapshot gallery stored on SDcard.
    thanks.

  4. one more.

    now I’m develop ARVR app, is this snapshot button just to snap on-screen interface ?
    is this work on stereoscopic interface ? i want it just a monoscopic(single) image saved.

    *sorry for english

  5. android ultimate plugin lite seems not free but paid, you got a free asset android ultimate plugin lite for unity3d thanks

  6. Great Tutorial thanks, but i want to ask question i developing a vuforia app,
    but when i taking a screenshot using your code my result is only white screen and the Augmented view only with white background can you help me pls?
    sorry for my bad english, thanks

  7. Thank you for your work, your tutorials are very helpful!

    I was wondering if it could be possible to show the panel only when the marker is tracked?

      • Thanks, I’ve managed to find a solution on these forums! But I’m now facing another issue as I have multiple targets. It works great, until I click the camera button and track another target : the share button from the previous track still appear… Is there a way to restart/disable your script while on OnTrackingLost?

      • I ended up duplicating your script and calling the matching canvas for each ImageTarget. I don’t know if it’s the best thing to do but it is working! Sorry for the bother and thanks again for your tutorials!

      • Hi admin!

        After tests on several devices, I am facing few troubles on a tablet using Android 4.4.2 :

        – If I take a screenshot of an ImageTarget and share it right away, my app restart.
        – If I take a screenshot of ImageTarget A without sharing it afterwards and take another one of ImageTarget B right after my app close.

        It is working great on smartphones using Android 4.2.2 and 5.1.1 though, any idea what the problem would be?

  8. Hi, your tutorials are very helpful great job! Got one question is it possible to take a snapshot with interface graphic elements? In my case the snapshot is working but without augmented layer. I’m working on simple app with OpenCV ForUnity. Maybe I have to change the camera name in your script?
    Thank you and pleas keep your tutorials coming!

  9. It’s an awesome tutorial,but i was undering if it is posible to add adition text to user’s one, for example: he/she wrote: I like this games,and in the end an stabil #CompanyName?

  10. hello,
    thank you for this tutorial.
    i try to this video, but i have a problem.
    Assets/script/SnapshotShare.cs(7,17): error CS0246: The type or namespace name `AndroidUltimatePluginController’ could not be found. Are you missing a using directive or an assembly reference?
    this error appear , did you know why ?

  11. I’m just building the unity 3D project on my Samsung and the panel and buttons are not appearing. They appear when I test it using UNITY 3D but not on my phone.
    Do you have any idea of what could it be?

  12. hey, thanks for the tutorial…but the share button does nothing and all the other buttons work. I bought the plugin and followed the tutorial, is there a permission I should be adding or something has changed?

  13. Hi, thanks for the tutorial!

    I’m having an issue with the screenshot aspect ratio. When I take a screenshot (in landscape or portrait mode), the image comes out vertically stretched (or horizontally squished). I tested it in 3 android devices, same in all 3. The images come out normal when i take a screenshot in unity on my mac.

    After a lot of research, I still can’t figure out the cause.
    Do you have any suggestions?

    Thank you

  14. Hi,

    Thanks for the tutorial, you make really easy tutorials.

    1 question: with the current script, none of the UI element gets visible on the screenshot.

    Is it possible to get a logo/Signature on the top left of the screen, so that that also gets displayed in the screenshot?

    I tried but was unable to find success

  15. Hello! Great tutorial, but when copy SnapShot.cs

    CS0246 C# The type or namespace name “AndroidUltimatePluginController” could not be found (are you missing a using directive or an assembly reference?)

    What to do now?

  16. The snapshot button and exit button could work, but the share button is not working. Why ? what further checking need for verification ?

Leave a Reply