Navigation
API > API/Runtime > API/Runtime/Engine
Unregisters a component for the lifetime of this class.
Typically used by constructing the class on the stack: { FComponentReregisterContext ReregisterContext(this); // The component is unregistered with the world here as ReregisterContext is constructed. ... } // The component is registered with the world here as ReregisterContext is destructed.
| Name | FComponentReregisterContext |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/ComponentReregisterContext.h |
| Include Path | #include "ComponentReregisterContext.h" |
Syntax
class FComponentReregisterContext : public FComponentReregisterContextBase
Inheritance Hierarchy
- FComponentReregisterContextBase → FComponentReregisterContext
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FComponentReregisterContext
(
UActorComponent* InComponent, |
ComponentReregisterContext.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FComponentReregisterContext() |
ComponentReregisterContext.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Component | TWeakObjectPtr< UActorComponent > | Pointer to component we are unregistering | ComponentReregisterContext.h | |
| World | TWeakObjectPtr< UWorld > | Cache pointer to world from which we were removed | ComponentReregisterContext.h |