# In Game Screenshot Android, IOS

**URL:** <https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963>\
**Category:** Blueprint\
**Tags:** unreal-engine, Multiplayer, Widget, UE4-27, question, Blueprint\
**Created:** [May 19, 2022, 10:00am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963 "2022-05-19T10:00:29Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [May 19, 2022, 10:00am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/1 "2022-05-19T10:00:29Z")

</div>

How to in Game Screenshot Android, IOS?

i think its only works on Windows

> **[Taking Screenshots](https://docs.unrealengine.com/4.27/en-US/WorkingWithMedia/CapturingMedia/TakingScreenshots/)**
>
> Guide to taking in-game screenshots of environments and gameplay.

So how to do that in Mobile game?

Any BP example?

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [May 19, 2022, 6:17pm UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/2 "2022-05-19T18:17:13Z")

</div>

You should be able to do this using the Execute Console Command node and using _Shot_ command in here.  
 ![shot-command](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/e/89e424cad451b7408548886ba043cd54b8f83aca.png)  
Note: This does not capture UI or any output from stat commands.  
If you need that output as well, use _bugscreenshot_ command instead of Shot.  
Worked with Android, I do not have any Apple devices available.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [May 20, 2022, 2:00am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/3 "2022-05-20T02:00:29Z")

</div>

can you show me whole BluePrints ?  
because i added it but not working  
please

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [May 20, 2022, 5:49am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/4 "2022-05-20T05:49:24Z")

</div>

It’s really simple. Here’s some code sequence.

**just connect the following to the beginplay of your character Blueprint**

 ![simple-code-example](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/5/f/65fb187d2c4637b76fa46ca9387ceb78b7e47db0.png)

Note the delay nodes - I just added these so that screenshots are taken cleanly and to avoid that android might get messed up when second shot appears immediately while first one is still running - did not test that, but just to be sure…  
Here’s [a link on blueprintue](https://blueprintue.com/blueprint/h-cpjx_h/), where you can copy the code.

Start your app, wait until done, stop.

Now you can use the adb debug bridge with pull command to get the screenshots. Standard screenshots go into _Saved/Screenshots/Android_ directory

```auto
E:\tmp>adb pull /sdcard/UE4Game/Minimal2/Minimal2/Saved/Screenshots/Android/ScreenShot00000.png ScreenShot00000.png
/sdcard/UE4Game/Minimal2/Minimal2/Save...d. 20.0 MB/s (1098814 bytes in 0.052s)

E:\tmp>

```

Note, that BugScreenshots go into _Saved/BugIt/Android_ directory

```auto
E:\tmp>adb pull /sdcard/UE4Game/Minimal2/Minimal2/Saved/BugIt/Android/BugScreenShot_00000.png BugScreenShot_00000.png
/sdcard/UE4Game/Minimal2/Minimal2/Save...d. 20.2 MB/s (1120980 bytes in 0.053s)

E:\tmp>

```

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [May 20, 2022, 8:02am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/5 "2022-05-20T08:02:27Z")

</div>

@herb64 thank you. but those screenshots not showing to Users. So how to change directory to their Image directory?

current directory is:  
_\Internal shared storage\UE4Game\SoundEffectTests\SoundEffectTests\Saved\Screenshots\Android_

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/b/4/0b4996ece7faac21b237ee252f6eaa83862358fd.jpeg)

Also it can run on IOS right?

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [May 20, 2022, 11:14am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/6 "2022-05-20T11:14:52Z")

</div>

That’s an interesting question. There seems to be no way to set a destination directory for the Shot / bugscreenshot commands at all.

I tried to do some copy operations, just experiments, unfortunately not really successful. Code to run on Windows and Android:

First: enable the “Blueprint File Utilities” Plugin to have some file operations available.

 ![find-all-png-files](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/1/b/81bbd2a913a6fa3feb8d54c7e66eb0906eaf233b.png)

All files are listed fine in the Array

Next create the filenames to copy with path information and do the copy

 ![try-to-copy-to-user-directory](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/5/b/a5b23c1c55a3a93506f1f7f144fc1ffbb7455d21.png)

Problems:  
On Windows, file paths are created perfectly, finding the correct user directory:

> E:\_Projects\Unreal\Minimal2\Saved\Screenshots\WindowsScreenShot00001.png to C:/Users/herbert/Documents/ScreenShot00001.png

but the copy operation fails for some reason, that is not clearly shown. " Source control is not enabled" - Looks like the last error message is not updated by the failing copy operation…

On Android, the file path for the User Directory is reported as …/…/…/. This is the case with both nodes, GetPlatformUserDir (which is present by default) and GetUserDir (coming with the Blueprint File Utilities Plugin). The app stays within the UE4Game directory structure. And the copy operation fails as well (checked, no file copied to the diretory below)

> Platform is android, dest user dir is …/…/…/  
> /sdcard/UE4Game/Minimal2/Minimal2/Saved/Screenshots/Android/ScreenShot00000.png to …/…/…/ScreenShot00000.png  
> SourceControl: Source control is disabled  
> SourceControl: Error: Source control is not enabled.  
> Source control is not enabled.

As said, for IOS, I have no devices.

If you want to play with this, [here](https://blueprintue.com/blueprint/m4ikhyj9/) the blueprint stuff to add after having done screenshots.

Even if it worked, there would be more logic involved, also better using the move node instead of copy etc…

At the moment, I have no idea, how this could be solved…

---

<div class="post-metadata">

**Author:** ![herb64](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@herb64](https://forums.unrealengine.com/u/herb64)\
**Post date:** [May 20, 2022, 6:36pm UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/7 "2022-05-20T18:36:23Z")

</div>

Just some more idea - thinking about what you might have intended - possibly just have a thumbnail of a scene to be shown in saved games menu (like I remember when I played HalfLife 2)

So I searched for options, which could help in saving a screenshot in a SaveGame object and came across [this one](https://forums.unrealengine.com/t/savegame-menu-with-screenshot-thumbnails/64541).

It does involve C++ and I did not get deeper into it, but it relies on a SceneCapture2D and saving data to a SaveGame - so that’s something, that is available to the player…

Just some idea, of how this could be possible…

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [May 26, 2022, 1:56am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/8 "2022-05-26T01:56:47Z")

</div>

is there any Working way to take screen shot properly?

---

<div class="post-metadata">

**Author:** ![mhawas](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mhawas](https://forums.unrealengine.com/u/mhawas)\
**Post date:** [January 18, 2023, 8:49am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/9 "2023-01-18T08:49:23Z")

</div>

Yes, I will add to the previous answer and solution by @herb64, as it was very helpful, you can use bugscreenshot in the command parameter inside the execute command console function, and then if you want to specify a location on your “Android” phone, you will add a “space” then write the location: so the overall text in the command parameter would be:  
bugscreenshot /storage/emulated/0/Pictures/yourscreenshot.png  
I tested it on my mobile and it worked.

---

<div class="post-metadata">

**Author:** ![ganbaa\_elmer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ganbaa_elmer/32/476547_2.png) [@ganbaa\_elmer](https://forums.unrealengine.com/u/ganbaa_elmer)\
**Post date:** [January 23, 2023, 3:35am UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/10 "2023-01-23T03:35:35Z")

</div>

can you share your blueprint on [https://blueprintue.com/](https://blueprintue.com/)  
and past URL here.  
it will helpful for everyone  
thank you

---

<div class="post-metadata">

**Author:** ![setik1669](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@setik1669](https://forums.unrealengine.com/u/setik1669)\
**Post date:** [June 18, 2023, 8:03pm UTC](https://forums.unrealengine.com/t/in-game-screenshot-android-ios/560963/11 "2023-06-18T20:03:57Z")

</div>

> [@Screenshots using Handheld AR template not saving to gallery (Android)](https://forums.unrealengine.com/t/screenshots-using-handheld-ar-template-not-saving-to-gallery-android/1203361/2):
>
> Alright, looks searching for ‘Game Screenshot Save Directory’ in the project settings and pasting /mnt/sdcard/DCIM/Camera/ worked.
