UKismetSystemLibrary::Conv_SoftObjRefToSoftObjPath
#include "Kismet/KismetSystemLibrary.h"
Access: public
Specifiers: staticBlueprintPureBlueprintThreadSafeBlueprintAutocast
Description
Converts a TSoftObjectPtr<UObject> soft reference into its underlying FSoftObjectPath. Shown in Blueprint as the "To Soft Object Path" autocast node.
Caveats & Gotchas
- • This is a pure struct conversion — it does not check whether the referenced asset actually exists or resolve anything.
- • Because the input is TSoftObjectPtr<UObject>, converting a more specific typed soft pointer (e.g. TSoftObjectPtr<UStaticMesh>) implicitly upcasts to UObject first; the resulting path string is unaffected either way.
Signature
static ENGINE_API FSoftObjectPath Conv_SoftObjRefToSoftObjPath(TSoftObjectPtr<UObject> SoftObjectReference) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SoftObjectReference | TSoftObjectPtr<UObject> | The soft object reference to convert. | — |
Return Type
FSoftObjectPath Example
Extract the path from a soft reference C++
TSoftObjectPtr<UObject> SoftRef = MyAsset;
FSoftObjectPath Path = UKismetSystemLibrary::Conv_SoftObjRefToSoftObjPath(SoftRef);
UE_LOG(LogTemp, Log, TEXT("Path: %s"), *Path.ToString()); See Also
Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?