- Home /
Application.CaptureScreenshot(); is not working on Android, Why?!
So i wrote my code down and attached it to a gui texture, when i hit the gui, code works and game is like gets paused for a very short time that i get the impression that is working, but then nothing happens. I looked everywhere where the screenshot might be at but no success, it doesn't save it! As it says in the script reference, "On mobile platforms the filename is appended to the persistent data path.", but i cannot find it? Why? I also checked that write on sd card tick on the player>other settings but no success yet.Please help me,point me put what should i do?
Have you found a solution for this? I'm having the same problem.
Until you find a real solution, you can simply use ADB to take a screenshot. It works like this: http://blog.shvetsov.com/2013/02/grab-android-screenshot-to-computer-via.html The first line is enough to take a screenshot that will be saved on your device.
Answer by alonsoGarrote · Sep 13, 2014 at 05:43 PM
CaptureScreenshot actually does save the captured image as a .png. /storage/emulated/0/Android/data/com.XXXX.XXX
Maybe my answer on this post can help you: I tried this code on a galaxy tab, GS3,GS4, also on a Nokia D3. although the save file paths may be different it works.
http://answers.unity3d.com/questions/731509/applicationcapturescreenshot-doesnt-save-anything.html if so, please mark this as an aswer.
Hope it helps.
Your answer
Follow this Question
Related Questions
Upload image to server and display it for others? 0 Answers
Screenshot to variable 1 Answer
Taking screenshots on iOS 0 Answers