Changing the inherited parent class of a component that is part of a blueprint hierarchy will cause the editor to crash and prevent the project from opening even if the inherited parent is changed back to the original class.

Steps to Reproduce
  1. Open UE4 Editor (any project
  2. Add code to project based on SceneComponent (TestComp)
  3. Create blueprint based on Actor (MyActorBP)
  4. Add TestComp component to MyActorBP
  5. In Code, add include statement for "Components/StaticMeshComponent.h"
  6. Change the class inheritance line of the .h file
    • From:
      class MYPROJECT19_API UMySceneComponent : public USceneComponent
    • To:
      class MYPROJECT19_API UMySceneComponent : public UStaticMeshComponent
  7. Compile

If the editor is open, this will cause the editor to immediately crash. After compiling these changes, the project will crash on load

Either the component is treated as a static mesh component or a warning is thrown when attempting to change the parent class.

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

Login to Vote

Won't Fix
ComponentUE - Gameplay - Blueprint
Affects Versions4.13.24.14
CreatedDec 8, 2016
ResolvedAug 18, 2021
UpdatedAug 18, 2021