# Blueprint reference keeps breaking after restarting the editor (following official tutorial) 

**URL:** <https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581>\
**Category:** Getting Started & Setup\
**Tags:** unreal-engine, editor, question, Blueprint\
**Created:** [July 31, 2025, 2:51am UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581 "2025-07-31T02:51:23Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![haforia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@haforia](https://forums.unrealengine.com/u/haforia)\
**Post date:** [July 31, 2025, 2:51am UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/1 "2025-07-31T02:51:23Z")

</div>

Hi everyone,

I’m completely new to Unreal Engine and fairly new to C++, though I have several years of experience with other programming languages like Java, JavaScript, and C.

I’m currently working through the official tutorial [_Code a First-Person Adventure Game in Unreal Engine_](https://dev.epicgames.com/documentation/en-us/unreal-engine/code-a-firstperson-adventure-game-in-unreal-engine), but I’ve run into a few issues that I just can’t make sense of, and I’d really appreciate some help understanding what’s going on.

I’m trying to dig into each problem step by step, double-checking everything carefully. Still, this particular issue has me completely stuck:

* * *

### Issue 1: Blueprint not showing up in dropdown lists

 ![picture1-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/2/8e263b9c17d7cb93cc89cdf19280e52550f50258.png)  
 ![picture1-2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/4/e/84e765fe3a1a11a05806e944700b3669671f1b84.png)

As shown in [picture1-1] and [picture1-2], my Blueprint `BP_AdventureGameMode` doesn’t appear in the dropdown menus for _GameMode Override_ or _Default GameMode_.

Here’s what I did:

- I followed the tutorial exactly: first created the C++ class `AdventureGameMode`, then created the corresponding Blueprint `BP_AdventureGameMode` based on it.
- There were already some tricky parts early on (like needing to close the editor before building), but I got through that.
- However, even after everything compiled successfully, `BP_AdventureGameMode` still doesn’t appear in the expected dropdowns.

I found a workaround: dragging the Blueprint directly into the GameMode slot from the Content Browser seems to work ([picture2-1], [picture2-2]).

 ![picture2-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/5/985fafe69e8b771d485e15a0a883df5307c65abb.png)  
 ![picture2-2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/6/b/c6bac451100efc82e0f24f6ab9dcfd35e9d5c8d7.png)

After doing that, everything appears to be working properly. When I build and press Play, I get the expected in-game message ([picture3]).

 ![picture3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/d/0/0d019c11f6144e319f45fe691062d0da255c0611.jpeg)

* * *

### Issue 2: Reference breaks after restarting the editor

Here’s the big problem:  
Every time I restart the Unreal Engine editor, I get a warning message ([picture4-1]),

 ![picture4-1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/6/3/563272e392e552c55653d434f18743d0b3c7b63a.png)

and the reference to `BP_AdventureGameMode` is completely broken ([picture4-2], [picture4-3], [picture4-4]).

 ![picture4-2](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/c/9/2c94f92e18c7e01ac322a258f6387d1a9314bd2b.png)  
 ![picture4-3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/1/a/d1a6a2cb5a389ca34ec34a71b3aa6ba6ad4229de.png)  
 ![picture4-4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/e/4/8e448d1e6cff25bac70c2118e9bdf99a2c9df9ff.png)

This keeps happening **every single time** I restart the editor. I’ve recreated the project from scratch and followed the tutorial step-by-step multiple times — the issue is always the same.

I honestly don’t understand what’s going on. It feels like Unreal Engine is unstable, and I’m starting to worry whether I’ll be able to reliably build anything with it if this kind of issue keeps happening.

* * *

Any insights or help would be greatly appreciated.  
Why does this reference keep breaking after restarting the editor?  
Is this a bug, or am I missing something fundamental?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![WayAway](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WayAway](https://forums.unrealengine.com/u/WayAway)\
**Post date:** [July 31, 2025, 1:47pm UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/2 "2025-07-31T13:47:50Z")

</div>

well, i spent the whole day on this one… i remember i saw at least one more topic with exactly the same problem so i decided to try it out myself and got the same result. Then i spent around 6-7 hours troubleshooting why it happens only when i follow this specific epic guide and not with other projects… turned out that new “FirstPersonBP” and “VehicleBP” templates had some weird “Redirects” in their “DefaultEngine.ini” config files which was causing all this. So i guess no one could really finish this new “code a FPS Adventure Game” guide from epic if they would use the same FPS template. Go to your project folder → config → open “DefaultEngine.ini” → search for “[/Script/Engine.Engine]” , under it you will find 4 lines starting with “+ActiveGameNameRedirects” and 2 of them have “/Script/MyProject” at the end - delete these 2 lines, but don’t touch the other 2 (the ones with your project name at the end). Save file, reopen unreal. - Now everything should work as expected.  
In the end i found this solution from the upcoming 5.6.1 hotfix commit :

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/0/1/101de200bdd8f1aed8719ae79be585f877985eb2.png)  
[https://github.com/EpicGames/UnrealEngine/commit/e065cb82075b337bca69549c209e17c1af9f4c42](https://github.com/EpicGames/UnrealEngine/commit/e065cb82075b337bca69549c209e17c1af9f4c42)  
Honestly i thought i was going crazy…everything worked fine with TPS and twin stick templates but not with FPS one, which official guide suggests. I even re-installed my visual studio, i created like 20 projects… phew

---

<div class="post-metadata">

**Author:** ![WayAway](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WayAway](https://forums.unrealengine.com/u/WayAway)\
**Post date:** [July 31, 2025, 2:29pm UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/3 "2025-07-31T14:29:11Z")

</div>

on a second thought i wish i would’ve just searched for the solution first 🙂 like i said i remember i saw a bunch of similar topics but i never saw if someone found the solution. And someone sure did, oh well… they actually suggested to remove only 2 lines, i removed all 4 and everything worked anyway (i think 😅). I have no idea if they are needed or not 🙂 but if it works with them, better leave them be…

> [@I am unable to make my C++ classes survive a restart in Unreal 5.6](https://forums.unrealengine.com/t/i-am-unable-to-make-my-c-classes-survive-a-restart-in-unreal-5-6/2560725):
>
> I am trying to follow [Set Up and Compile a C++ Project in Unreal Engine | Unreal Engine 5.6 Documentation | Epic Developer Community](https://dev.epicgames.com/documentation/en-us/unreal-engine/set-up-and-compile-a-cplusplus-project-in-unreal-engine) in Unreal 5.6 However when I parent a blueprint off of a C++ class, save, compile and exit unreal, when I restart it, The blueprint not only is no longer parenteded,giving me the error Blueprint could not be loaded because it derives from an invalid class. Check to make sure the parent class for this blueprint hasn't been removed! Do you want to continue (it can …

> [@Blueprint lost link to C++ class after each restart](https://forums.unrealengine.com/t/blueprint-lost-link-to-c-class-after-each-restart/2568363):
>
> Hi ! I’m new to Unreal Engine, and I’m currently following the tutorial of Unreal on Get Started : I’m currently on “Code a First-Person Adventure Game”. It’s the first course using C++ classes. I have medium-low prior knowledge on coding, mainly C# for Unity, and some other languages for work that I barely use. But almost never in C++. All this to say that I don’t have a lot of knowledge about compiling/making build of code, it usually was quite invisible in my previous work. So I’m not co…

---

<div class="post-metadata">

**Author:** ![haforia](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@haforia](https://forums.unrealengine.com/u/haforia)\
**Post date:** [July 31, 2025, 4:46pm UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/4 "2025-07-31T16:46:07Z")

</div>

The solution you suggested worked!  
Your post shows how much work and trouble you went through.  
I truly appreciate it — it’s been an enormous help to me. Thank you. 😄

And reading your post made me also think I should have done a bit more searching myself.  
But I still think both your post and mine are meaningful. 😆

---

<div class="post-metadata">

**Author:** ![WayAway](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WayAway](https://forums.unrealengine.com/u/WayAway)\
**Post date:** [August 1, 2025, 6:12am UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/5 "2025-08-01T06:12:49Z")

</div>

glad it worked 😃 . But just in case i would bring 2 lines (with your project name at the end) back, i think they are added automatically during project creation phase, so maybe they will be useful at some point. I don’t wanna be responsible for breaking someone’s project, so i will edit my post to suggest deleting only 2 lines, in case someone else will find this thread.

---

<div class="post-metadata">

**Author:** ![Nuvr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nuvr/32/984040_2.png) [@Nuvr](https://forums.unrealengine.com/u/Nuvr)\
**Post date:** [August 1, 2025, 3:54pm UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/6 "2025-08-01T15:54:53Z")

</div>

So much projects I started trying to figure out where Im wrong, and here it is, the gold in the end of the mine, thank you very much!

---

<div class="post-metadata">

**Author:** ![jaov2k](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jaov2k](https://forums.unrealengine.com/u/jaov2k)\
**Post date:** [August 6, 2025, 6:49pm UTC](https://forums.unrealengine.com/t/blueprint-reference-keeps-breaking-after-restarting-the-editor-following-official-tutorial/2624581/7 "2025-08-06T18:49:30Z")

</div>

Legend!
