Component not delet in constructor

i changed

MyBody= CreateDefaultSubobject<UStaticMeshComponenet>(FName("MyBody"));

to

EnemyBody= CreateDefaultSubobject<USkeletalMeshComponent>(FName("EnemyBody"));

but MyBody sataticMeshComponenet still exists as root component in inheriting BP in the editor!

I Re-Generate my project few times and Re-build it from C++ few times but it doesn’t change.

any solution?

Hi! Unfortunately there is such a problem in Unreal. All I can suggest is to create a new BP actor inherited from your C++ class. :frowning_face:

changing the parent to a base class like character or actor and then reparenting back also fixes this some times