UKismetSystemLibrary::GetPathName
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticUFUNCTIONBlueprintPure
Description
Returns the full path to the specified object as a string, e.g. "/Game/Maps/MyMap.MyMap:PersistentLevel.MyActor".
Caveats & Gotchas
- • Exposed to Blueprint with DisplayName "Get Object Path String" — searching for GetPathName alone in the Blueprint node picker may not surface it under that exact name.
- • Implemented via GetPathNameSafe, so a null Object returns "None" instead of crashing.
- • Returns a string, not a structured path — prefer GetSoftObjectPath if you need something that can be stored and reloaded (e.g. TSoftObjectPtr) rather than just displayed.
Signature
static FString GetPathName(const UObject* Object) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| Object | const UObject* | The object to get the full path of. | — |
Return Type
FString Example
Log an object's full path C++
FString Path = UKismetSystemLibrary::GetPathName(MyActor);
// e.g. "/Game/Maps/MainMap.MainMap:PersistentLevel.MyActor_1" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?