UKismetSystemLibrary::GetOuterObject
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the outer object of an object — the UObject it is nested inside in UE's object hierarchy (e.g. a component's outer is typically its owning actor).
Caveats & Gotchas
- • Not the same as an actor's Owner — Outer reflects object construction/ownership in the reflection system, not gameplay ownership used for replication and visibility.
- • Returns null if Object itself is null or has no outer (e.g. a package object).
- • For components, GetOuter() usually returns the owning actor, but this isn't guaranteed for all UObjects — check the result before assuming a specific type.
Signature
static UObject* GetOuterObject(const UObject* Object) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | const UObject* | The object to get the outer of. | — |
Return Type
UObject* Example
Get the actor that owns a component object C++
if (UObject* Outer = UKismetSystemLibrary::GetOuterObject(MyComponent))
{
UE_LOG(LogTemp, Log, TEXT("Outer: %s"), *Outer->GetName());
} Tags
Version History
Introduced in: 4.20
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?