I am trying to add a static mesh component to an actor.
I have a simple actor component that does this, however, the new component doesn’t show in the hierarchy of the actor.
But when I use the “Add” component button on the details pane it does appear in the hierarchy.
in addition, whenever I rerun the construction script on my actor (by moving it) the component is destroyed…this is not the case when using the “Add” button.
How can I create a permanent actor component that appears in the hierarchy?
You can use Subobject Data Subsystem to add components with EditorUtilityWidget or EditorUtilityBlueprint. It’s a more complex method that allows you to manage components in the blueprint and outliner. However, it requires some skills.