Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UActorComponent
Description
Unregister and mark for pending kill a component. This may not be used to destroy a component that is owned by an actor unless the owning actor is calling the function.
| Name | K2_DestroyComponent |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h |
| Include Path | #include "Components/ActorComponent.h" |
| Source | /Engine/Source/Runtime/Engine/Private/Components/ActorComponent.cpp |
UFUNCTION (BlueprintCallable, Category="Components",
Meta=(Keywords="Delete", HidePin="Object", DefaultToSelf="Object", DisplayName="Destroy Component", ScriptName="DestroyComponent"))
void K2_DestroyComponent
(
UObject * Object
)