Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Components > API/Runtime/Engine/Components/UActorComponent
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Components/ActorComponent.h |
| Include | #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
)
Remarks
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.