Change class of BP Component

Is it possible to change the class of an already existing BP component to a derived class?
I made a class in C++:

class UStaticMeshAsConstPart :public UStaticMeshComponent

I have BPs that contain multiple UStaticMeshComponent and i would like to change some of them to this new UStaticMeshAsConstPart.
Is it possible to do something like this without having to manually delete the UStaticMeshComponent and re-add them as UStaticMeshAsConstPart?

You can change the Parent Class of a Blueprint Component in it’s Class Settings.

imageimage


But since UStaticMeshComponent is not a BP component, I don’t think you can replace them without deleting. Maybe someone else knows a way to replace them without deleting.

Found the solution, hack AF but it works.
Select the UStaticMeshComponent i want to copy. Paste into notepad.
Rename
Object Class=/Script/Engine.StaticMeshComponent
to
Object Class=/Script/pr43_lvm.StaticMeshAsConstPart

Copy text from notepad, paste into blueprint. Delete original components.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.