UAbilitySystemComponent::UninitializeComponent
#include "AbilitySystemComponent.h"
Access: public
Specifiers: virtualoverride
Description
Called when the component is unregistered. Cleans up active gameplay effects, clears the actor info, and unregisters attribute sets.
Caveats & Gotchas
- • Always call Super::UninitializeComponent() in overrides — the base implementation removes active gameplay effects which would otherwise leak.
- • This is called during component unregistration which may happen before the actor is fully destroyed; do not assume the outer actor is still valid.
Signature
virtual void UninitializeComponent() override Return Type
void Example
Override with super call C++
void UMyAbilitySystemComponent::UninitializeComponent()
{
// Custom cleanup before ASC tears down
Super::UninitializeComponent();
} Tags
Version History
Introduced in: 4.15
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?