# Pausing your Game when Steam Overlay becomes Active

**URL:** <https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184>\
**Category:** Community & Industry Discussion\
**Tags:** unreal-engine\
**Created:** [April 3, 2017, 11:11pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184 "2017-04-03T23:11:53Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [April 3, 2017, 11:11pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/1 "2017-04-03T23:11:53Z")

</div>

Hello.

I have written a guide to help you pause your game when the Steam Overlay becomes active. It’s quite extensive, but is very thorough, so I hope people won’t encounter any bugs, errors, or crashes like I did. I spent more than a month trying to get this to work and became very frustrated at times.

> **[A new, community-hosted Unreal Engine Wiki](https://forums.unrealengine.com/t/a-new-community-hosted-unreal-engine-wiki/141494)**
>
> After over a year in maintenance mode, the official Unreal Engine Wiki is now permanently offline. These resources now live on a new community-run Unreal Engine Community Wiki — ue4community.wiki! You will be able to find content from the official...

Please feel free to correct any spelling or grammar issues. If you think my wording choose was poor, please feel free to edit it out. English ain’t my first language, so I bet I screwed up at some places.

Cheers!

---

<div class="post-metadata">

**Author:** ![Michael-Hunault](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Michael-Hunault](https://forums.unrealengine.com/u/Michael-Hunault)\
**Post date:** [January 20, 2020, 10:49pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/2 "2020-01-20T22:49:07Z")

</div>

Hi Motanum,

I know it has been a long time since you have posted your tutorial, but we are now in 2020 and I am a blueprint only developer which would like to know how to pause a game when the steam overlay is called.  
I have followed your tutorial with care, but at the time of compiling the code (in Unreal or VS), I have a lot of errors.

I would like to know if you could test and rewrite your tutorial for the latest engine and steam sdk (I’m on 139). Or if I could show you the errors given by VS?

If anyone comes here and has any idea of how to do this please let me know.

Many thanks!

Michael.

---

<div class="post-metadata">

**Author:** ![Motanum](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Motanum](https://forums.unrealengine.com/u/Motanum)\
**Post date:** [January 20, 2020, 11:03pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/3 "2020-01-20T23:03:15Z")

</div>

Michael. I am using still basically the same system as the tutorial. It does involve CPP, as I found it easier to write it down in CPP as the API for steam is in CPP.

What errors are you getting? Is this a blank project? When did the errors come up? I suggest that if you are new to coding, to compile often, just to catch errors in small batches than to write a full system and then compiling.

---

<div class="post-metadata">

**Author:** ![TerrorMedia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TerrorMedia](https://forums.unrealengine.com/u/TerrorMedia)\
**Post date:** [January 22, 2020, 2:28am UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/4 "2020-01-22T02:28:56Z")

</div>

I agree always compile often or if in blueprint run the script and catch errors as early as you can. It is increasingly harder to troubleshoot errors as you get more of them. The more you have at once the harder it is to tell what is causing you the headache and it can get rather insane rather quickly.

I hadn’t seen this post I must have missed it as it was posted back around the time I began using the engine. Do you know if any other solutions to this have popped up? I’m also curious about handling other overlays like the radeon software overlay or whatever else is out there now.

---

<div class="post-metadata">

**Author:** ![Imagine-Games](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Imagine-Games](https://forums.unrealengine.com/u/Imagine-Games)\
**Post date:** [February 1, 2020, 10:21pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/5 "2020-02-01T22:21:21Z")

</div>

Unfortunately I’m having an issue using the Wiki as the function OnSteamOverlayIsActive() that is present in mygameinstance.h says it is already defined in the SteamManager.h , but then if i dont define it in the gameinstance.cpp as well, it gives me a compile error…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7a01d49d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7a01d49d](https://forums.unrealengine.com/u/anonymous_user_7a01d49d)\
**Post date:** [March 5, 2020, 7:40pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/6 "2020-03-05T19:40:10Z")

</div>

Hi!

I’m having an issue when I’m including the steam API, it gives me several errors on MyGameInstance.generated.cpp. When I take out the Steam API, the code compiles. And I’m stuck between these parts.

I can see the overlay screen on my game (which I followed this video to integrate Steam with Unreal: [- YouTube](https://www.youtube.com/watch?v=ATdkoeSJ2WA&t=374s))

But I can’t follow your wiki bc of this error ☹  
Since I’m no experienced in C++ I’m asking for help 🙂

Thanks!!

---

<div class="post-metadata">

**Author:** ![eelDev](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eeldev/32/1214743_2.png) [@eelDev](https://forums.unrealengine.com/u/eelDev)\
**Post date:** [March 7, 2020, 9:15am UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/7 "2020-03-07T09:15:28Z")

</div>

If you want a blueprint only solution, you can get the **[SteamCore::](https://www.unrealengine.com/marketplace/en-US/product/5300c1dc33f74524bcad23bdeb9b2196)** plugin from the marketplace, I’ll even include an example for you on how to pause your game when an overlay is opened:

 ![50b119926e3f31ba4315fad215030824.png](https://d3kjluh73b9h9o.cloudfront.net/original/3X/5/e/5e46d96177084c7961a830c50f34b6f422ce3df9.png)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7a01d49d](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7a01d49d](https://forums.unrealengine.com/u/anonymous_user_7a01d49d)\
**Post date:** [March 9, 2020, 8:02pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/8 "2020-03-09T20:02:51Z")

</div>

Hi

The only thing I’m after is an event to pause the game when the Steam Overlay starts. I wouldn’t mind programming this specific event myself. Unfortunately, I can’t afford the plugin, that’s why I’m seeking help to create the code. The one I’m trying to do via Unreal Wiki is giving me ton of errors on the generated.h files when I include the steam\_api.h on SteamManager.h

---

<div class="post-metadata">

**Author:** ![SkyeEden](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/skyeeden/32/1116094_2.png) [@SkyeEden](https://forums.unrealengine.com/u/SkyeEden)\
**Post date:** [March 16, 2022, 12:34pm UTC](https://forums.unrealengine.com/t/pausing-your-game-when-steam-overlay-becomes-active/89184/9 "2022-03-16T12:34:25Z")

</div>


