# Reparent blueprint via DefaultEngine.ini

**URL:** <https://forums.unrealengine.com/t/reparent-blueprint-via-defaultengine-ini/781854>\
**Category:** C++\
**Tags:** unreal-engine, CPP, question, Blueprint\
**Created:** [March 2, 2023, 8:12am UTC](https://forums.unrealengine.com/t/reparent-blueprint-via-defaultengine-ini/781854 "2023-03-02T08:12:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 2, 2023, 8:12am UTC](https://forums.unrealengine.com/t/reparent-blueprint-via-defaultengine-ini/781854/1 "2023-03-02T08:12:26Z")

</div>

I changed the name of the C++ class from which a blueprint was derived.

Now the blueprint cannot be edited.

![1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/e/c/aeca3c2de40925e49ef3bd489261bee72c131e00.png)

Then search this forum for a way to reparent it manually.

I found some comments that said how to do it.

Like this:

> [@Blueprint could not be loaded because it derives from an invalid class](https://forums.unrealengine.com/t/blueprint-could-not-be-loaded-because-it-derives-from-an-invalid-class/294732/12):
>
> This happens if the c++ class is renamed and you forget to add a Core Redirect, which is why the Blueprint system will not be able to find its parent. This situation is pretty much always explainable and simple to solve. If it’s a Blueprint class complaining about its parent class which is also a Blueprint class, you might be dealing with some form of corruption. In that case, if the editor does not allow you to set a new class you could attempt to by using this tool:

Like this:

> [@Can I Manually change the Blueprint Parent Class?](https://forums.unrealengine.com/t/can-i-manually-change-the-blueprint-parent-class/278028/7):
>
> You can add a game name redirector to your project in your project’s Config/DefaultEngine.ini file, under the Engine section like this: [/Script/Engine.Engine] +ActiveGameNameRedirects=(OldGameName="/Script/OldGame",NewGameName="/Script/NewGame") +ActiveGameNameRedirects=(OldGameName="OldGame",NewGameName="NewGame") Which should allow you to access the class and load your stuff! We’re also working on ways to salvage content where the parent class has gone away. Right now, we block it because…

Even a tutorial:

> **[Quick Tip: Fixing Parentless Blueprints With CoreRedirects](https://unrealingens.wordpress.com/2018/05/08/quick-tip-fixing-parentless-blueprints-with-coreredirects/)**
>
> Unreal Engine 4’s Blueprints system allows for fast visual programming, and one exceptional feature of Blueprints is that they allow inheritance from other Blueprint or pure C++ classes! Howe…

However, I have tried to do as they say and I have not been able to make it work.

So two possible things can happen:  
1-The method is deprecated  
2-I am using a wrong syntax (I think it is a path problem)

If this is the path of my blueprint

> /Script/UMGEditor.WidgetBlueprint’/Game/Game/AllLevels/EOS\_Lobby/EOS\_LobbyMenu.EOS\_LobbyMenu’

and this is the path of my C++ class

> Source/Catharsis/Public/Lobby/CLobbyWidget.h

what is the correct syntax for this?

> [CoreRedirects]  
> +ClassRedirects=(OldName=“(Old Name Here)”,NewName=“(New Name Here)”)

Or the proposed method no longer works?

Thank you so much!!

---

<div class="post-metadata">

**Author:** ![Ivan3z](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ivan3z](https://forums.unrealengine.com/u/Ivan3z)\
**Post date:** [March 2, 2023, 8:25am UTC](https://forums.unrealengine.com/t/reparent-blueprint-via-defaultengine-ini/781854/2 "2023-03-02T08:25:49Z")

</div>

ok, it seems that the world was waiting for me to post my question to immediately find the answer.

I found it here:

> **[Core Redirects](https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/ProgrammingWithCPP/Assets/CoreRedirects/)**
>
> Core Redirects enable remapping classes, enums, functions, packages, properties, and structs at load time.

thanks to this website:

> **[Core Redirectors: What you need to know](https://www.unrealdirective.com/articles/core-redirectors-what-you-need-to-know)**
>
> Detailed instructions on how to manually create redirectors in Unreal Engine.

it worked this way:

> [CoreRedirects]  
> +ClassRedirects=(OldName=“LobbyWidget”,NewName=“CLobbyWidget”)

what a problem changing a single letter of a class name…

At least I was able to get my blueprint back.

I’m sorry… and thank you!!
