USceneComponent::DestroyComponent

Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.

Windows
MacOS
Linux

Override Hierarchy

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Components/SceneComponent.h

Include

#include "Components/SceneComponent.h"

Source

/Engine/Source/Runtime/Engine/Private/Components/SceneComponent.cpp

Syntax

virtual void DestroyComponent
(
    bool bPromoteChildren
)

Remarks

Unregister the component, remove it from its outer Actor's Components array and mark for pending kill.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss