C++ classes are disappearing in editor, but they are appearing in Visual Studio?!

Hello.
I have a strange and absurd phenomenon on UE5.

I created C++ class in Unreal Editor, then I edited it in Visual Studio. As far as I planned to try to make animated UMG thing on C++, I reparented User Widget Blueprint to my C++ class. And after my several tests, Unreal Editor crashed. But IDE was opened. And I restarted UE5 (with automatically sending a report) And then… The biggest programming absurdity I have ever encountered.

So let me show you some screenshots of my problem. Just look at the screenshot from Visual Studio.

Full version of this screenshot:

And let’s have a look at the situation from Unreal Editor.

Full version of this screenshot:

After restarting the project and trying to open User Widget Blueprint, I get such error message:

Widget 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!

It’s strange, isn’t it?

Then, note: I’m using Unreal Engine 5.1.1 from Epic Games Launcher and Visual Studio 2022 Community Edition.
And yeah, I know that there are many similar topics and questions on Unreal Engine Forums. But even refreshing VS solution didn’t help me in this problem. :confused:

Should you know how to solve that strange and absurd problem, please don’t hesitate to leave your solution or comments about that.

I hope that problem is soluble and this bug could be fixed on next versions of UE5.

I had the same issue. Solution from here worked for me.

1 Like

Well, I deleted Intermediate and Binaries folders. I got warning.

Zrzut ekranu 2023-03-06 213657

Then, I got that error :slight_smile:

Zrzut ekranu 2023-03-06 213813

But then, Unreal Engine was launched successfully, and I finally have access to my C++ classes))

Thank you very much <3

I hope that bug will be fixed on UE 5.1.x or 5.2

Hi there @SemiSonicMiraculer, hope you’re well!

This topic has been moved from International to Programming & Scripting: C++.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

1 Like