Hi,
I try to write a plugin for the ue4. In this plugin I add a component to an actor like this:
UGridTileComponent* component = NewObject<UGridTileComponent>(this);
component->RegisterComponent();
component->AttachToComponent(RootComponent, FAttachmentTransformRules::KeepRelativeTransform);
But when I try to destroy it with
component->DestroyComponent()
it does not dissapear in the Editor-Mode.
Has someone an idea what I have to change?