# After changing module name all parent classes are missing

**URL:** <https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242>\
**Category:** Blueprint\
**Tags:** suggestion, unreal-engine, bug-report, Blueprint, question, CPP\
**Created:** [June 28, 2016, 3:19am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242 "2016-06-28T03:19:32Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [June 28, 2016, 3:19am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/1 "2016-06-28T03:19:32Z")

</div>

After changing module name and MODULE\_API tag and recompile all my blueprints in project parent classes are missing. I think unreal can handle finding old classes in new modules.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 28, 2016, 2:53pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/2 "2016-06-28T14:53:54Z")

</div>

Hey -

Are you changing the name of engine/plugin/custom modules? If you’re using a custom module (ex: for your own game code) can you explain how you’re creating the new module? Additionally, can you let me know if you’re able to use the reparent option to re-associate the blueprints with their parent classes?

---

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [June 29, 2016, 5:31am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/3 "2016-06-29T05:31:43Z")

</div>

Hi , I renamed main module of the project and changed \_API macros, and all blueprint classes where broken. Reparenting by hand is not an option for me, we have too many classes.

---

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [June 29, 2016, 9:47am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/4 "2016-06-29T09:47:46Z")

</div>

Actually is it possible to reparent blueprint from content browser? I don’t see any option there.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [June 29, 2016, 6:24pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/5 "2016-06-29T18:24:08Z")

</div>

I want to ensure that I am doing the same things you are in my attempt to reproduce this locally. With a project named MyProjectA - I’ve changed the reference of MyProjectA in the Build.cs file to NewProj. In addition, I’ve also changed `MyProjectA_API` to `NewProj_API` in all of the classes of my project. Are there any other places where you are doing any renaming?

---

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [June 30, 2016, 4:39am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/6 "2016-06-30T04:39:44Z")

</div>

, in general i change module name in uproject, change name of .cs files and change \_api macros. No classes renaming. But i’ll try to recheck everything on weekend, and will drop you exact steps.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [July 6, 2016, 3:17pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/7 "2016-07-06T15:17:24Z")

</div>

Hey -

I tried to change the name inside the .uproject as well as rename the .Target.cs/Editor.Target.cs/Build.cs files. I then changed the \_API for the files in the project. After doing so I was unable to Generate the Visual Studio project files. Can you explain exactly what you’re changing in your project?

---

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [July 7, 2016, 3:37am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/8 "2016-07-07T03:37:01Z")

</div>

- In .uproject change module names.
- Rename source folders
- rename \*.Target.cs and classes inside them, also rename ExtraModuleNames
- In source folders rename \*.Build.cs files and module name references if any.

after that .sln should generate.

After that you can change \_API macros.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [July 7, 2016, 1:27pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/9 "2016-07-07T13:27:43Z")

</div>

Hey -

Thank you for the detailed steps. I was able to reproduce the issue and have entered UE-32892 for investigation.

Cheers

---

<div class="post-metadata">

**Author:** ![Yata](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Yata](https://forums.unrealengine.com/u/Yata)\
**Post date:** [October 12, 2016, 3:46pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/10 "2016-10-12T15:46:21Z")

</div>

Hi, .

Looks like ticked was marked Won’t Fix. With proposal to use class redirects. Ok it may work, but maybe Epics can add module redirects, which will redirect all classes of one module to another module. Listing all the classes by hand can be not easy task. Or there is already some similar feature?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_2b03d27c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_2b03d27c](https://forums.unrealengine.com/u/anonymous_user_2b03d27c)\
**Post date:** [October 12, 2016, 7:08pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/11 "2016-10-12T19:08:29Z")

</div>

I have entered a feature request for the ability to redirect all classes of a module. You can follow the report here ([Unreal Engine Issues and Bug Tracker (UE-37232)](https://issues.unrealengine.com/issue/UE-37232) ) as it is reviewed by developers.

---

<div class="post-metadata">

**Author:** ![Ben\_Zeigler](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ben\_Zeigler](https://forums.unrealengine.com/u/Ben_Zeigler)\
**Post date:** [January 3, 2017, 11:37pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/12 "2017-01-03T23:37:16Z")

</div>

I noticed this thread, I’m working on some improvements to redirects that will make this easier in the 4.16 timeframe, but it’s still in progress.

But you can do this now, with a redirect that has a confusing name:

+ActiveGameNameRedirects=(OldGameName="/Script/MovieSceneCore",NewGameName="/Script/MovieScene")

That redirects all classes inside /Script/MovieSceneCore, even though it isn’t actually a game. There are some bugs with this but it may do what you want.

---

<div class="post-metadata">

**Author:** ![Hevedy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Hevedy](https://forums.unrealengine.com/u/Hevedy)\
**Post date:** [November 17, 2017, 7:11pm UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/13 "2017-11-17T19:11:33Z")

</div>

Same problem here on 4.15 But the Ben solution worked for now.

---

<div class="post-metadata">

**Author:** ![Snipe3000](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Snipe3000](https://forums.unrealengine.com/u/Snipe3000)\
**Post date:** [May 17, 2023, 6:24am UTC](https://forums.unrealengine.com/t/after-changing-module-name-all-parent-classes-are-missing/362242/14 "2023-05-17T06:24:40Z")

</div>

Unfortunately, this doesn’t work anymore.
