Quick answer: The editor could not find the Blueprint’s parent class, so the Blueprint has nothing to derive from. Click No, save nothing, and close the editor. The asset on disk is still intact. Then make the parent class exist again under the name the asset expects: rebuild the C++ module from your IDE, re-enable the plugin, or add a Core Redirect if the class or module was renamed.
You double-click a Blueprint and the editor answers with “Blueprint could not be loaded because it derives from an invalid class.” Often several Blueprints do it at once, and actors placed in your levels are missing too. Almost every time, the Blueprint itself is fine and the problem is on the C++ side: the class it inherits from was renamed, removed, or lives in a module that did not load. This guide covers what to do in the first minute so nothing is lost, how to find the class the asset is asking for, and the fix for each cause.
- The exact error
- What the editor is telling you
- First: do not save anything
- The causes, by what you changed last
- Find the class the Blueprint is asking for
- Fix: the module did not build or did not load
- Fix: the class or module was renamed or moved
- When the class is really gone
- What Bugnet can and cannot report here
- Related guides
- Frequently asked questions
The exact error
The dialog, in UE5:
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)?
It has Yes and No buttons. In some situations the editor shows a shorter form, which stops before the question and has only an OK button. A third form goes to the Message Log with the asset’s name in front:
BP_Hero 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!
The dialog never says which class is missing. The Output Log does, earlier, at the moment the asset was loaded. These are the lines to look for (the engine also puts the asset’s file path in front of each message, trimmed here):
LogLinker: Warning: CreateExport: Failed to load Parent for BlueprintGeneratedClass /Game/Characters/BP_Hero.BP_Hero_C
LogLinker: Warning: VerifyImport: Failed to find script package for import object 'Package /Script/MyGameAbilities'
The first line confirms the diagnosis for one Blueprint. The second appears when a whole C++ module is absent, and it names the module. The Load Errors page of the Message Log lists the same failures as “Failed import for” entries with the path of the class that could not be found.
What the editor is telling you
A Blueprint asset does not contain its parent class. It stores a reference to it as a path. For a C++ parent the path is /Script/, the module name, a dot, and the class name without its A or U prefix: AHeroCharacter in the module MyGame is /Script/MyGame.HeroCharacter. For a Blueprint parent it is an asset path such as /Game/Characters/BP_BaseCharacter.BP_BaseCharacter_C.
When the editor loads the asset, it looks that path up among the classes that exist right now. C++ classes exist only while their module is loaded. If the lookup finds nothing, the engine cannot build the Blueprint’s generated class, because a class needs a parent to supply everything it inherits. The Blueprint object loads as a shell with no class behind it, and opening it produces this dialog.
So the message means one of two things. Either the class is not there (deleted, or its module did not load), or it is there under a different path (renamed, or moved to another module). Both are fixed outside the Blueprint.
First: do not save anything
At this point the damage exists only in the editor’s memory. The .uasset file on disk still holds the complete Blueprint with its reference to the parent. Once the parent can be found again, the Blueprint loads exactly as it was. Saving is what turns a temporary failure into a permanent one.
- Click No on the dialog. Yes opens a Blueprint with no valid parent, which is the state the dialog warns can crash the editor.
- Do not use Save All, and do not save the affected Blueprint, its child Blueprints, or any level that contains instances of it. A level drops placed actors whose class failed to load. Save that level and those actors are gone from the file, along with every per-instance setting on them.
- Close the editor. If it lists unsaved assets, choose Don’t Save.
- Fix the cause with the editor closed, then reopen the project.
If something was already saved, the fix is the same, followed by restoring the affected assets from source control. That is covered under When the class is really gone.
The causes, by what you changed last
| What happened before the error | Cause | Fix |
|---|---|---|
| You pulled changes from a teammate, or switched branches, and opened the project without building | Your module binaries are older than the content. The Blueprint derives from a class your compiled module does not contain yet | Rebuild from the IDE |
| You added the class with Live Coding running, made a Blueprint from it, and restarted the editor | The class existed only in the Live Coding session’s patch. The module on disk was never rebuilt | Rebuild from the IDE |
| The C++ build has errors, and the editor started with the last binaries that did build | Same as above: stale binaries | Fix the compile errors, then rebuild |
| You renamed a C++ class, or moved it to another module | The class exists under a new path and the asset still stores the old one | Core Redirect |
| You renamed the project or a module | Every /Script/OldName. path in your content points at a module that no longer exists | Package redirect |
| You disabled, removed or did not install a plugin | The parent class is in that plugin’s module | Re-enable or install the plugin |
| You added a second module, or the error only appears for assets loaded at startup | The module is not listed in the .uproject or .uplugin file, or it loads after the assets that need it | Module list and loading phase |
| You deleted a C++ class, or deleted or moved a parent Blueprint outside the editor | The parent no longer exists anywhere | Restore it, or reparent |
Find the class the Blueprint is asking for
You need two facts: the path the asset stores, and whether a class with that path exists in the editor right now.
- Read the log. Open Window > Output Log, or the newest file in the project’s
Saved/Logsfolder, and search for the Blueprint’s name and forFailed to. TheVerifyImportand “Failed import” entries carry the/Script/Module.Classpath. - Hover the asset in the Content Browser. The tooltip lists the Parent Class and Native Parent Class recorded when the asset was last saved. This works without loading the Blueprint, so it is safe.
- Search the Class Viewer. Open Tools > Class Viewer and type the class name without its prefix. If the class is listed, its module is loaded and the mismatch is in the path: the class is in a different module than the asset expects, or has a slightly different name. If it is not listed, the class does not exist in this editor session, and the question becomes why its module did not provide it.
- Count the casualties. One broken Blueprint points at one class. Every Blueprint under one module or plugin breaking together points at the module.
Fix: the module did not build or did not load
Rebuild from the IDE with the editor closed
The editor does not compare your source files against your binaries when it starts. It asks to rebuild only when a module’s binary is missing or was built for a different engine. If the binaries exist but are old, it loads them, and any class added to the source since then is absent.
- Close the editor.
- Open the project’s
.slnfile. If source files were added or removed, right-click the.uprojectfile first and choose Generate Visual Studio project files. - Set the configuration to Development Editor and the platform to Win64.
- Build the game project and read the Output window to the end. A build that stops on an error leaves the old binaries in place. The guides for C2065, C1083 and LNK2019 cover the errors that most often stop it.
- Start the editor and open the Blueprint.
Team members who do not compile need the binaries handed to them. If your artists open the project from source control without a compiler installed, whoever adds a C++ class has to supply the matching editor binaries along with the Blueprints that use it.
After Live Coding
Live Coding patches the running editor in memory. It does not rewrite the module file in Binaries. A class you add during a session works until you close the editor, and a Blueprint you create from it saves a reference to a class that the on-disk module has never heard of. Developers regularly report this exact dialog on the next launch. The cure is the full rebuild above. To avoid it, treat a new UCLASS or a changed header as a reason to close the editor and build from the IDE before making Blueprints from the class. If the IDE refuses to build, see How to Fix “Unable to build while Live Coding is active” in Unreal Engine.
The plugin is disabled or missing
Open Edit > Plugins, search for the plugin that owns the class, tick Enabled and restart. If the plugin is not in the list, it is not installed for this engine version or is missing from the project’s Plugins folder, which happens when the folder is ignored by source control. Restore it, and rebuild if it is a C++ plugin inside the project.
The module is not listed, or loads too late
A module is loaded by the editor because a .uproject or .uplugin file lists it. A second module that has a folder and a Build.cs but no entry may never load:
"Modules": [
{
"Name": "MyGame",
"Type": "Runtime",
"LoadingPhase": "Default"
},
{
"Name": "MyGameAbilities",
"Type": "Runtime",
"LoadingPhase": "PreDefault"
}
]
LoadingPhase decides when. Default is right for most modules. If the Blueprints fail only when they are loaded during startup, and open fine when you load them by hand later, something is loading them before their module. Moving the module that owns the parent class to PreDefault makes it available earlier. Check Type as well: a parent class in an Editor module works in the editor and does not exist in a packaged game, where the same Blueprint fails with “Could not find SuperStruct to create”.
Fix: the class or module was renamed or moved
When the class still exists under a new path, tell the engine how to translate the old path. Core Redirects go in Config/DefaultEngine.ini:
[CoreRedirects]
; class renamed inside one module
+ClassRedirects=(OldName="/Script/MyGame.HeroCharacter",NewName="/Script/MyGame.PlayerHero")
; class moved to another module, same name
+ClassRedirects=(OldName="/Script/MyGame.HeroCharacter",NewName="/Script/MyGameCore.HeroCharacter")
; whole module or project renamed
+PackageRedirects=(OldName="/Script/OldGame",NewName="/Script/MyGame")
Details that decide whether a redirect works:
- No prefix. Write
HeroCharacter, neverAHeroCharacter. - Copy the old path from the log or the asset tooltip. A redirect whose
OldNamedoes not match what the asset stores does nothing and reports nothing. - Restart the editor. Redirects are read at startup.
After the restart the Blueprint should open with no dialog. Now saving is safe, and useful: resaving the asset writes the new path into it, so it no longer depends on the redirect. Once every affected asset has been resaved, the redirect can be removed. Many teams leave class redirects in place because they cost little. A package redirect that uses MatchSubstring=true is the exception, since substring matching slows startup and is meant as a temporary measure. The short guide to Blueprints broken after renaming a C++ class or property covers property and function redirects too.
If the parent is itself a Blueprint that was moved or renamed outside the editor, there is no redirector asset pointing at its new location. Move it back in the file system, then move it properly inside the Content Browser. How to Fix Redirector and Asset Reference Errors in Unreal Engine explains what the editor does during a move.
When the class is really gone
Restore the class. If the header and source file were deleted by mistake or lost in a merge, bring them back from source control and rebuild. The Blueprint loads again with nothing else to do.
Point the old path at a replacement. If you deleted the class on purpose and another class should take over, a class redirect from the old path to the replacement works as a reparent that needs no editor session with a broken Blueprint. Properties and components are matched by name, so anything the replacement does not declare is dropped. Open the Blueprint, check its components and defaults, then save.
Reparent by hand. With no suitable replacement, the remaining option is to click Yes on the dialog and, if the editor survives, choose File > Reparent Blueprint and pick a valid class. Do this on a copy of the .uasset file, or with the asset safely in source control. Whatever the Blueprint inherited from the old parent is lost, and graph nodes that called the old parent’s functions show errors when you compile.
Undo a save. If the Blueprint or a level was saved while the parent was missing, restore the files from before that save:
git log --oneline -- Content/Characters/BP_Hero.uasset
git checkout <commit> -- Content/Characters/BP_Hero.uasset
In Perforce, sync the file to its previous revision. With no source control, look in the project’s Saved/Autosaves folder for an older copy, and check that its date is from before the problem started. Fix the cause first and restore second, or the restored file breaks the same way.
For the future, the safe order when retiring a C++ class is: reparent or delete the Blueprints that derive from it while the class still exists, save them, and only then remove the class.
What Bugnet can and cannot report here
This dialog is an editor message. It appears on a developer’s machine when an asset is opened, so it never reaches players and never reaches Bugnet. Nothing in a crash or bug reporting tool will tell you about it. Your log and your source control history will.
The same root cause does have a runtime form. When a packaged build contains a Blueprint whose parent class is not in the build, for example because the class lives in an editor-only module, loading it can stop the game with the “Could not find SuperStruct” fatal error. Bugnet’s Unreal SDK binds FCoreDelegates::OnHandleSystemError and files fatal errors with the engine’s error text and recent log lines, along with the game version and platform, and reports with the same title stack into one entry with an occurrence count. The limit is timing. If the failure happens during startup, before the SDK is running, nothing is sent, because a game that never starts cannot report itself. For launch failures, what Bugnet offers is a known-issues entry on your public tracker that players can find and add to.
Related guides
- How to Fix “Could not find SuperStruct to create” in Unreal Engine
- Fix: Unreal Blueprints Broken After Renaming a C++ Class or Property (Core Redirects)
- How to Fix “The game module could not be loaded” in Unreal Engine
- How to Fix “The following modules are missing or built with a different engine version” in Unreal
- How to Fix “Plugin ‘X’ failed to load because module ‘X’ could not be found” in Unreal
Frequently asked questions
What does Blueprint could not be loaded because it derives from an invalid class mean?
The Blueprint stores a path to its parent class, and the editor could not find a class at that path when it loaded the asset. The parent was renamed, deleted, or belongs to a C++ module or plugin that did not load. The Blueprint file itself is usually undamaged.
Should I click Yes or No on the invalid class dialog in Unreal?
Click No, save nothing, and close the editor. The asset on disk still has its parent reference, and it loads normally again once the parent class can be found. Saving the Blueprint, or a level that contains instances of it, while the parent is missing is what makes the loss permanent.
How do I find which parent class a broken Blueprint is looking for?
Search the Output Log or the newest file in Saved/Logs for the Blueprint name and for LogLinker warnings such as Failed to load Parent and Failed to find script package, which name the /Script/Module.Class path. Hovering the asset in the Content Browser also shows the Parent Class and Native Parent Class it was saved with. Then search for the class in Tools > Class Viewer to see whether it exists in the current session.
Why did my Blueprint lose its parent class after restarting the editor?
The usual reason is that the module binaries on disk do not contain the class. That happens when the class was added during a Live Coding session, when you pulled new code without building, or when the last build failed. Close the editor and build the project from your IDE in the Development Editor configuration.
How do I fix Blueprints after renaming a C++ class or module in Unreal?
Add a redirect under [CoreRedirects] in Config/DefaultEngine.ini that maps the old /Script path to the new one, using ClassRedirects for a class and PackageRedirects for a whole module, with class names written without the A or U prefix. Restart the editor, confirm the Blueprints open, then resave them so they store the new path.
Click No and save nothing: the asset on disk is intact until you save over it. Close the editor, make the parent class exist again under the path the asset stores, then reopen the project.