# UE5 does not recognize previously created C++ classes

**URL:** <https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576>\
**Category:** Feedback & Requests\
**Tags:** error, unreal-engine, bug-report\
**Created:** [May 23, 2022, 9:13pm UTC](https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576 "2022-05-23T21:13:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ukshadow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ukshadow](https://forums.unrealengine.com/u/ukshadow)\
**Post date:** [May 23, 2022, 9:13pm UTC](https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576/1 "2022-05-23T21:13:34Z")

</div>

I have an issue with C++ classes, and any derived blueprints. Here are the steps I followed:

- Create a new project (In this case, a blank C++ windows project)

- Add a C++ class.  

- Make changes in the newly created class.  

- Compile the chanegs with Live Coding  

- Create a Blueprint based on that newly created class  

- Make changes on the newly created blueprint, compile and save.  

- Add a new instance of that Blueprint on the level  

- Save the project, and exit.

- Upon loading the project again, I get the following messages.  

The created instance is no longer visible…

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/c/9/bc90492b84b3640f084db0d685054c55bb8c9b53.jpeg)

Attempting to open the Blueprint displays this error:  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/6/a/66a501f3c6d9c9ef16bdc072e096142d40c3d6b7.png)

And the mentioned class is no longer being displayed in the Content Drawer anymore, but the files are still in the folder.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/8/c/b8cb78216b06c9b72aed3e6296c6d768184973b5.png)

Recompiling with Live Coding makes the class appear once more, but the problem is repeated the next time UE5 is closed.

---

<div class="post-metadata">

**Author:** ![ukshadow](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ukshadow](https://forums.unrealengine.com/u/ukshadow)\
**Post date:** [May 25, 2022, 10:31pm UTC](https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576/2 "2022-05-25T22:31:06Z")

</div>

I did some more testing. I closed the UE5 Editor and compiled on [VS.NET](http://VS.NET) without using the live coding function. The blueprints worked as expected and the created classes could be seen in the editor.

However, upon use of live coding all data was lost again.

---

<div class="post-metadata">

**Author:** ![DanteRevill](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DanteRevill](https://forums.unrealengine.com/u/DanteRevill)\
**Post date:** [December 16, 2022, 8:43pm UTC](https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576/3 "2022-12-16T20:43:26Z")

</div>

I’m having this exact same problem and disabling Live Coding is not working. Does anyone else managed to find another solution? It’s impossible to work with this error.

---

<div class="post-metadata">

**Author:** ![jonbassoon25](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@jonbassoon25](https://forums.unrealengine.com/u/jonbassoon25)\
**Post date:** [February 22, 2025, 1:27am UTC](https://forums.unrealengine.com/t/ue5-does-not-recognize-previously-created-c-classes/564576/4 "2025-02-22T01:27:57Z")

</div>

I was able to find a solution that works for me, although this process will need to be repeated each time you open your project in the Editor.

If you delete the Binaries folder in your project directory before trying to open the project in the Unreal Editor, you will be prompted to rebuild your project module which will compile all of your c++ classes along with doing some other processes. After that, the Editor will launch and the blueprints will be working.

I believe this works because the root of the problem is that the Unreal Editor is trying to compile the blueprint classes without first compiling the c++ classes that they inherit from. When you rebuild your project module, you are forcing the Editor to compile the c++ classes before it tries to compile the blueprint classes in your project.

If this doesn’t work for you, a longer forum discussing the same issue can be found here:

> [@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/11):
>
> 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 crash the editor)? This is happening nearly every time I start UE5… driving completely bonkers at this point…
