# Screenshot Function In Packaged Game

**URL:** <https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617>\
**Category:** Blueprint\
**Tags:** unreal-engine\
**Created:** [May 31, 2018, 7:59pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617 "2018-05-31T19:59:24Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [May 31, 2018, 7:59pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/1 "2018-05-31T19:59:24Z")

</div>

Hi! I have a camera feature in my game that uses the “HighresShot 1” Command when it saves a pic. I have it set up to save the image to my desktop that I specified in the project settings window.

My question is, when I package my game, how would it be possible to have a relative filepath so that the picture would save on another user’s PC?

---

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [June 4, 2018, 5:57pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/2 "2018-06-04T17:57:47Z")

</div>

Still looking for an answer. Anyone?

---

<div class="post-metadata">

**Author:** ![Kris](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/kris/32/758129_2.png) [@Kris](https://forums.unrealengine.com/u/Kris)\
**Post date:** [June 4, 2018, 8:31pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/3 "2018-06-04T20:31:38Z")

</div>

There is nothing built into the engine that I am aware of that would send this picture across a network to another users PC.  
Something you would have to code in yourself, unless you leverage Steam or some other system that allows screenshot sharing.

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [June 5, 2018, 12:45am UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/4 "2018-06-05T00:45:39Z")

</div>

i think op means save to a non hard coded filepath like \*/user/pictures/screenshots and not something like c:/users/XXmikeXX/pictures

---

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [June 9, 2018, 3:58am UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/5 "2018-06-09T03:58:11Z")

</div>

> [@ixicalibur](#):
>
> i think op means save to a non hard coded filepath like \*/user/pictures/screenshots and not something like c:/users/XXmikeXX/pictures

Yes, this is what I meant thank you

---

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [June 12, 2018, 6:48pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/6 "2018-06-12T18:48:06Z")

</div>

I’m still trying to figure this one out, any suggestions?

---

<div class="post-metadata">

**Author:** ![ixicalibur](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ixicalibur](https://forums.unrealengine.com/u/ixicalibur)\
**Post date:** [June 13, 2018, 1:24am UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/7 "2018-06-13T01:24:26Z")

</div>

quick question, where did you set the filepath? was it in a config file? just so i can have a play around and see if i can get something working

---

<div class="post-metadata">

**Author:** ![StrangeLove13](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@StrangeLove13](https://forums.unrealengine.com/u/StrangeLove13)\
**Post date:** [June 14, 2018, 1:29am UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/8 "2018-06-14T01:29:33Z")

</div>

> [@ixicalibur](#):
>
> quick question, where did you set the filepath? was it in a config file? just so i can have a play around and see if i can get something working

Sure! The screenshot directory is in the Project Settings under Engine - General Settings

---

<div class="post-metadata">

**Author:** ![joestallings](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@joestallings](https://forums.unrealengine.com/u/joestallings)\
**Post date:** [March 13, 2020, 7:57pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/9 "2020-03-13T19:57:48Z")

</div>

Anyone ever figure this out? I’ve struggled mightily on this.

---

<div class="post-metadata">

**Author:** ![YahiyaJasem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/yahiyajasem/32/1069108_2.png) [@YahiyaJasem](https://forums.unrealengine.com/u/YahiyaJasem)\
**Post date:** [June 25, 2020, 7:46pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/10 "2020-06-25T19:46:04Z")

</div>

> [@joestallings](#):
>
> Anyone ever figure this out? I’ve struggled mightily on this.

I’m trying to figure this out but nothing yet

---

<div class="post-metadata">

**Author:** ![jwatte](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/jwatte/32/744941_2.png) [@jwatte](https://forums.unrealengine.com/u/jwatte)\
**Post date:** [June 25, 2020, 11:00pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/11 "2020-06-25T23:00:35Z")

</div>

Write a platform specific plugin that does the right thing for each platform.  
On Windows, call SHGetKnownFolderPath() and return that path.  
On MacOS, call NSSearchPathForDirectoriesInDomains().  
On Linux, use getenv(“XDG\_PICTURES\_DIR”) and if that’s empty, use getenv(“HOME”)+"/Pictures"  
On Android, iOS, and other systems, use the respective appropriate system-specific methods.

Assuming you know a little C++, and have Visual Studio/C++ 2019 installed (not VS Code!) (community Edition is fine) then it’s actually quite easy to write a Blueprint Library in C++ to export functionality from a few functions.

---

<div class="post-metadata">

**Author:** ![ShadowBr0kerz](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/shadowbr0kerz/32/1201558_2.png) [@ShadowBr0kerz](https://forums.unrealengine.com/u/ShadowBr0kerz)\
**Post date:** [October 12, 2026, 8:10pm UTC](https://forums.unrealengine.com/t/screenshot-function-in-packaged-game/111617/12 "2026-10-12T20:10:03Z")

</div>

hardcoding your desktop path is the trap, it only ever works on your machine. two fixes that compose well.

first, never hardcode: resolve per user (ProjectSavedDir style paths) or just ask the player where to save. a Save File dialog with a default file name is the friendly version, no typing paths like its ms-dos.

second, the picker has to survive packaging. Async Runtime File Dialog, a native file picker plugin for Unreal Engine 5, is a Save File Picker node with On Saved returning the path and On Cancelled if they back out, built for packaged Win64 games on 5.0-5.8: [Async Runtime File Dialog — Native OS File Picker for Blueprints | Fab](https://www.fab.com/listings/0044ee86-6930-4839-931a-bd63bf6ea34f)

then pass that path to your HighResShot filename. one pick, works on every player pc.
