The docs tell you to to call UActorComponent::UnregisterComponent(). However UActorComponent::DestroyComponent() seems like the way to go, actually.
Also, don’t forget to null any pointer holding a reference to the component.
The docs tell you to to call UActorComponent::UnregisterComponent(). However UActorComponent::DestroyComponent() seems like the way to go, actually.
Also, don’t forget to null any pointer holding a reference to the component.